mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user