Update UI test snapshots. (#4722)

* Update UI test snapshots.

* Stop snapshotting the photo picker, just assert that it was presented.

* Fix a swipe action not being detected in the UI tests.

* Handle the split view properly on iPad when accepting a space invite.

Fixes a test but also properly handles replacing a room with a space.
This commit is contained in:
Doug
2025-11-11 11:34:01 +00:00
committed by GitHub
parent b698e0855d
commit f48c4ec2ff
38 changed files with 90 additions and 88 deletions
+4 -2
View File
@@ -40,8 +40,10 @@ class StartChatTests: XCTestCase {
app.buttons[A11yIdentifiers.createRoomScreen.roomAvatar].tap()
app.popovers.buttons.element(boundBy: 2).tap() // There are 2 buttons with the accessibility identifier, so use the index to get the right one.
let cancelButton = app.buttons["Cancel"]
XCTAssertTrue(cancelButton.waitForExistence(timeout: 1.0))
try await app.assertScreenshot(step: Step.createRoomAvatarPicker)
// The system UI snapshot is unreliable, instead lets just assert something.
// XCTAssertTrue(cancelButton.waitForExistence(timeout: 1.0))
// try await app.assertScreenshot(step: Step.createRoomAvatarPicker)
XCTAssertTrue(app.navigationBars["Photos"].waitForExistence(timeout: 20.0)) // The first load of the photo picker can sometimes be *really* slow.
cancelButton.tap()
// typeText sometimes misses letters but it's faster than typing one letter at a time