mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 19:34:25 +02:00
Fix a few failing UI tests.
This commit is contained in:
+2
-2
@@ -38,7 +38,7 @@ enum MockAuthenticationServerSelectionScreenState: MockScreenState, CaseIterable
|
||||
let viewModel: AuthenticationServerSelectionViewModel
|
||||
switch self {
|
||||
case .matrix:
|
||||
viewModel = AuthenticationServerSelectionViewModel(homeserverAddress: "https://matrix.org",
|
||||
viewModel = AuthenticationServerSelectionViewModel(homeserverAddress: "matrix.org",
|
||||
hasModalPresentation: true)
|
||||
case .emptyAddress:
|
||||
viewModel = AuthenticationServerSelectionViewModel(homeserverAddress: "",
|
||||
@@ -48,7 +48,7 @@ enum MockAuthenticationServerSelectionScreenState: MockScreenState, CaseIterable
|
||||
hasModalPresentation: true)
|
||||
Task { await viewModel.displayError(.footerMessage(VectorL10n.errorCommonMessage)) }
|
||||
case .nonModal:
|
||||
viewModel = AuthenticationServerSelectionViewModel(homeserverAddress: "https://matrix.org",
|
||||
viewModel = AuthenticationServerSelectionViewModel(homeserverAddress: "matrix.org",
|
||||
hasModalPresentation: false)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ class AuthenticationServerSelectionUITests: MockScreenTest {
|
||||
|
||||
func verifyNormalState() {
|
||||
let serverTextField = app.textFields.element
|
||||
XCTAssertEqual(serverTextField.value as? String, "matrix.org", "The server shown should be matrix.org with the https scheme hidden.")
|
||||
XCTAssertEqual(serverTextField.value as? String, "matrix.org", "The server shown should be matrix.org as passed to the view model init.")
|
||||
|
||||
let confirmButton = app.buttons["confirmButton"]
|
||||
XCTAssertEqual(confirmButton.label, VectorL10n.confirm, "The confirm button should say Confirm when in modal presentation.")
|
||||
|
||||
Reference in New Issue
Block a user