mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user