mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
Fixed SwiftUI UI tests not finding the right state to tap if not already displayed on screen.
This commit is contained in:
committed by
Stefan Ceriu
parent
3e6ecb27bb
commit
5aa59e87fe
@@ -29,7 +29,7 @@ class PollEditFormUITests: XCTestCase {
|
||||
|
||||
app = XCUIApplication()
|
||||
app.launch()
|
||||
app.buttons[MockPollEditFormScreenState.screenStateKeys.first!].tap()
|
||||
app.goToScreenWithIdentifier(MockPollEditFormScreenState.standard.title)
|
||||
}
|
||||
|
||||
func testInitialStateComponents() {
|
||||
|
||||
@@ -32,7 +32,7 @@ class PollTimelineUITests: XCTestCase {
|
||||
}
|
||||
|
||||
func testOpenPoll() {
|
||||
app.buttons[MockPollTimelineScreenState.screenStateKeys.first!].tap()
|
||||
app.goToScreenWithIdentifier(MockPollTimelineScreenState.open.title)
|
||||
|
||||
XCTAssert(app.staticTexts["Question"].exists)
|
||||
XCTAssert(app.staticTexts["20 votes cast"].exists)
|
||||
@@ -70,7 +70,7 @@ class PollTimelineUITests: XCTestCase {
|
||||
}
|
||||
|
||||
func testClosedPoll() {
|
||||
app.buttons[MockPollTimelineScreenState.screenStateKeys.last!].tap()
|
||||
app.goToScreenWithIdentifier(MockPollTimelineScreenState.closed.title)
|
||||
|
||||
XCTAssert(app.staticTexts["Question"].exists)
|
||||
XCTAssert(app.staticTexts["Final results based on 20 votes"].exists)
|
||||
|
||||
Reference in New Issue
Block a user