mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Merge branch 'develop' into maximee/6029_lls_timeline_cell and apply comments
This commit is contained in:
+20
-13
@@ -19,21 +19,28 @@ import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class StaticLocationViewingUITests: MockScreenTest {
|
||||
|
||||
private var app: XCUIApplication!
|
||||
|
||||
override func setUp() {
|
||||
continueAfterFailure = false
|
||||
|
||||
app = XCUIApplication()
|
||||
app.launch()
|
||||
override class var screenType: MockScreenState.Type {
|
||||
return MockStaticLocationViewingScreenState.self
|
||||
}
|
||||
|
||||
override class func createTest() -> MockScreenTest {
|
||||
return StaticLocationViewingUITests(selector: #selector(verifyStaticLocationViewingScreen))
|
||||
}
|
||||
|
||||
func verifyStaticLocationViewingScreen() {
|
||||
guard let screenState = screenState as? MockStaticLocationViewingScreenState else { fatalError("no screen") }
|
||||
|
||||
switch screenState {
|
||||
case .showUserLocation:
|
||||
verifyInitialExistingLocation()
|
||||
case .showPinLocation:
|
||||
verifyInitialExistingLocation()
|
||||
}
|
||||
}
|
||||
|
||||
func testInitialExistingLocation() {
|
||||
goToScreenWithIdentifier(MockStaticLocationViewingScreenState.showUserLocation.title)
|
||||
|
||||
XCTAssertTrue(app.buttons["Cancel"].exists)
|
||||
XCTAssertTrue(app.buttons["StaticLocationView.shareButton"].exists)
|
||||
XCTAssertTrue(app.otherElements["Map"].exists)
|
||||
func verifyInitialExistingLocation() {
|
||||
XCTAssertTrue(app.buttons["Cancel"].exists, "The cancel button should exist.")
|
||||
XCTAssertTrue(app.buttons["shareButton"].exists, "The share button should exist.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user