mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
Fix UI Tests and run on PRs
- Add missing screen states. - Detect the bottom of the screen list and stop scrolling if screen state wasn't found. - Remove unimplemented tests to speed up the run. - Remove failed button checks in MatrixItemChooserUITests
This commit is contained in:
@@ -26,11 +26,15 @@ enum MockAppScreens {
|
||||
MockOnboardingCongratulationsScreenState.self,
|
||||
MockOnboardingUseCaseSelectionScreenState.self,
|
||||
MockOnboardingSplashScreenScreenState.self,
|
||||
MockStaticLocationViewingScreenState.self,
|
||||
MockLocationSharingScreenState.self,
|
||||
MockAnalyticsPromptScreenState.self,
|
||||
MockUserSuggestionScreenState.self,
|
||||
MockPollEditFormScreenState.self,
|
||||
MockSpaceCreationEmailInvitesScreenState.self,
|
||||
MockSpaceSettingsScreenState.self,
|
||||
MockRoomAccessTypeChooserScreenState.self,
|
||||
MockRoomUpgradeScreenState.self,
|
||||
MockMatrixItemChooserScreenState.self,
|
||||
MockSpaceCreationMenuScreenState.self,
|
||||
MockSpaceCreationRoomsScreenState.self,
|
||||
|
||||
@@ -30,12 +30,19 @@ struct ScreenList: View {
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
List {
|
||||
ForEach(0..<allStates.count) { i in
|
||||
let state = allStates[i]
|
||||
NavigationLink(destination: state.view) {
|
||||
Text(state.screenTitle)
|
||||
SwiftUI.Section {
|
||||
ForEach(0..<allStates.count, id: \.self) { i in
|
||||
let state = allStates[i]
|
||||
NavigationLink(destination: state.view) {
|
||||
Text(state.screenTitle)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SwiftUI.Section {
|
||||
Text("Last Item")
|
||||
.accessibilityIdentifier("lastItem")
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Screen States")
|
||||
|
||||
Reference in New Issue
Block a user