mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Add accessibility identifiers in SegmentedPicker
This commit is contained in:
@@ -23,18 +23,22 @@ class PollHistoryUITests: MockScreenTestCase {
|
||||
let title = app.navigationBars.firstMatch.identifier
|
||||
let emptyText = app.staticTexts["PollHistory.emptyText"]
|
||||
let items = app.staticTexts["PollListItem.title"]
|
||||
let selectedSegment = app.buttons["\(VectorL10n.pollHistoryActiveSegmentTitle)-selected"]
|
||||
XCTAssertEqual(title, VectorL10n.pollHistoryTitle)
|
||||
XCTAssertTrue(items.exists)
|
||||
XCTAssertFalse(emptyText.exists)
|
||||
XCTAssertTrue(selectedSegment.exists)
|
||||
}
|
||||
|
||||
func testPollHistoryShowsEmptyScreen() {
|
||||
app.goToScreenWithIdentifier(MockPollHistoryScreenState.activeEmpty.title)
|
||||
app.goToScreenWithIdentifier(MockPollHistoryScreenState.pastEmpty.title)
|
||||
let title = app.navigationBars.firstMatch.identifier
|
||||
let emptyText = app.staticTexts["PollHistory.emptyText"]
|
||||
let items = app.staticTexts["PollListItem.title"]
|
||||
let selectedSegment = app.buttons["\(VectorL10n.pollHistoryPastSegmentTitle)-selected"]
|
||||
XCTAssertEqual(title, VectorL10n.pollHistoryTitle)
|
||||
XCTAssertFalse(items.exists)
|
||||
XCTAssertTrue(emptyText.exists)
|
||||
XCTAssertTrue(selectedSegment.exists)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user