mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
#1098 - Stopped relying on the SDK in the suggestionService and added unit and ui tests.
This commit is contained in:
@@ -31,17 +31,10 @@ class UserSuggestionUITests: MockScreenTest {
|
||||
}
|
||||
|
||||
func verifyUserSuggestionScreen() throws {
|
||||
guard let screenState = screenState as? MockUserSuggestionScreenState else { fatalError("no screen") }
|
||||
switch screenState {
|
||||
case .longDisplayName(let name):
|
||||
verifyUserSuggestionLongName(name: name)
|
||||
}
|
||||
XCTAssert(app.tables.firstMatch.exists)
|
||||
|
||||
let firstButton = app.tables.firstMatch.buttons.firstMatch
|
||||
_ = firstButton.waitForExistence(timeout: 10)
|
||||
XCTAssert(firstButton.identifier == "displayNameText-userIdText")
|
||||
}
|
||||
|
||||
func verifyUserSuggestionLongName(name: String) {
|
||||
let displayNameText = app.staticTexts["displayNameText"]
|
||||
XCTAssert(displayNameText.exists)
|
||||
XCTAssertEqual(displayNameText.label, name)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user