mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Switch UI tests to iPhone 15, fix the broken ones
This commit is contained in:
+5
-5
@@ -56,7 +56,7 @@ class UserOtherSessionsUITests: MockScreenTestCase {
|
||||
func test_whenOtherSessionsMoreMenuButtonSelected_moreMenuIsCorrect() {
|
||||
app.goToScreenWithIdentifier(MockUserOtherSessionsScreenState.all.title)
|
||||
|
||||
app.buttons["More"].tap()
|
||||
app.buttons["More"].forceTap()
|
||||
XCTAssertTrue(app.buttons["Select sessions"].exists)
|
||||
XCTAssertTrue(app.buttons["Sign out of 6 sessions"].exists)
|
||||
}
|
||||
@@ -64,7 +64,7 @@ class UserOtherSessionsUITests: MockScreenTestCase {
|
||||
func test_whenOtherSessionsSelectSessionsSelected_navBarContainsCorrectButtons() {
|
||||
app.goToScreenWithIdentifier(MockUserOtherSessionsScreenState.all.title)
|
||||
|
||||
app.buttons["More"].tap()
|
||||
app.buttons["More"].forceTap()
|
||||
app.buttons["Select sessions"].tap()
|
||||
let signOutButton = app.buttons["Sign out"]
|
||||
XCTAssertTrue(signOutButton.exists)
|
||||
@@ -76,7 +76,7 @@ class UserOtherSessionsUITests: MockScreenTestCase {
|
||||
func test_whenOtherSessionsSelectAllSelected_navBarContainsCorrectButtons() {
|
||||
app.goToScreenWithIdentifier(MockUserOtherSessionsScreenState.all.title)
|
||||
|
||||
app.buttons["More"].tap()
|
||||
app.buttons["More"].forceTap()
|
||||
app.buttons["Select sessions"].tap()
|
||||
app.buttons["Select All"].tap()
|
||||
XCTAssertTrue(app.buttons["Deselect All"].exists)
|
||||
@@ -85,7 +85,7 @@ class UserOtherSessionsUITests: MockScreenTestCase {
|
||||
|
||||
func test_whenAllOtherSessionsAreSelected_navBarContainsCorrectButtons() {
|
||||
app.goToScreenWithIdentifier(MockUserOtherSessionsScreenState.all.title)
|
||||
app.buttons["More"].tap()
|
||||
app.buttons["More"].forceTap()
|
||||
app.buttons["Select sessions"].tap()
|
||||
for i in 0...MockUserOtherSessionsScreenState.all.allSessions().count - 1 {
|
||||
app.buttons["UserSessionListItem_\(i)"].tap()
|
||||
@@ -95,7 +95,7 @@ class UserOtherSessionsUITests: MockScreenTestCase {
|
||||
|
||||
func test_whenChangingSessionSelection_signOutButtonChangesItState() {
|
||||
app.goToScreenWithIdentifier(MockUserOtherSessionsScreenState.all.title)
|
||||
app.buttons["More"].tap()
|
||||
app.buttons["More"].forceTap()
|
||||
app.buttons["Select sessions"].tap()
|
||||
let signOutButton = app.buttons["Sign out"]
|
||||
XCTAssertTrue(signOutButton.exists)
|
||||
|
||||
Reference in New Issue
Block a user