From 08ca96952698c0b7c6bdf634e7021ed8fec5f4f9 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 29 Aug 2023 13:18:44 +0300 Subject: [PATCH] Attempt to fix attachment media in the integration tests --- IntegrationTests/Sources/UserFlowTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IntegrationTests/Sources/UserFlowTests.swift b/IntegrationTests/Sources/UserFlowTests.swift index cea897169..5f93771ff 100644 --- a/IntegrationTests/Sources/UserFlowTests.swift +++ b/IntegrationTests/Sources/UserFlowTests.swift @@ -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")