Attempt to fix attachment media in the integration tests

This commit is contained in:
Stefan Ceriu
2023-08-29 13:18:44 +03:00
parent 0152e4147b
commit 61d4f9edf5

View File

@@ -70,8 +70,8 @@ class UserFlowTests: XCTestCase {
// Open photo library picker
tapOnButton(A11yIdentifiers.roomScreen.attachmentPickerPhotoLibrary)
// Tap on the first image
app.scrollViews.images.firstMatch.tap()
// Tap on the second image. First one is always broken on simulators.
app.scrollViews.images.element(boundBy: 1).tap()
// Cancel the upload flow
tapOnButton("Cancel")