From 87f6b1379b2a0096414228a39a1abfcc4dc5d423 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 16 Oct 2026 09:39:50 +0300 Subject: [PATCH] Fix the space exploration UI test on iPad The tab rail used in regular width on iPad is a custom view and never applied the tabs' accessibility identifiers, so UI tests couldn't find its buttons. Apply them to the rail's buttons the same way the TabView layout does. --- .../Application/Navigation/NavigationTabCoordinator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ElementX/Sources/Application/Navigation/NavigationTabCoordinator.swift b/ElementX/Sources/Application/Navigation/NavigationTabCoordinator.swift index 6773c116b..208d60ebb 100644 --- a/ElementX/Sources/Application/Navigation/NavigationTabCoordinator.swift +++ b/ElementX/Sources/Application/Navigation/NavigationTabCoordinator.swift @@ -450,6 +450,7 @@ struct TabRailView: View { } .buttonStyle(TabButtonStyle(isSelected: isSelected)) .accessibilityAddTraits(isSelected ? .isSelected : []) + .accessibilityIdentifier(module.details.accessibilityIdentifier ?? "") .overlay(alignment: .topTrailing) { if module.details.badgeCount > 0 { NotificationCountBadge(count: module.details.badgeCount, size: .small)