Fix integration tests following the search tab introduction

Tabbar tabs now can take accessibility identifiers and the integration test uses the newly expected flow.
This commit is contained in:
Stefan Ceriu
2026-10-14 09:44:53 +03:00
parent 7752ae3f6a
commit 27e59a81e4
6 changed files with 32 additions and 13 deletions
@@ -283,7 +283,7 @@ struct SearchScreen: View {
private extension View {
/// Searchable makes the preview contents randomly appear lower
@ViewBuilder func conditionalSearchable(searchQuery: Binding<String>) -> some View {
if !ProcessInfo.isXcodePreview, !ProcessInfo.isRunningTests {
if !ProcessInfo.isXcodePreview, !ProcessInfo.isRunningTests || ProcessInfo.isRunningIntegrationTests {
searchable(text: searchQuery, placement: .toolbarPrincipal)
} else {
self
@@ -334,6 +334,7 @@ private struct SearchScreenRoomCell: View {
.padding(.vertical, 12)
}
.buttonStyle(SearchScreenRoomCellButtonStyle(isSelected: isSelected))
.accessibilityIdentifier(A11yIdentifiers.searchScreen.roomName(room.title))
.listRowInsets(.init())
.listRowSeparator(.hidden)
.rowDivider()