From 53973f9891651bee4e3bab8410f2197513c8f34d Mon Sep 17 00:00:00 2001 From: isabelrios Date: Mon, 9 Oct 2023 17:51:28 +0200 Subject: [PATCH] update photon action sheet UI Tests to pass on iOS 17 --- Tests/XCUITests/PhotonActionSheetTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/XCUITests/PhotonActionSheetTests.swift b/Tests/XCUITests/PhotonActionSheetTests.swift index ab8a66e8937b..dc1650e49ea3 100644 --- a/Tests/XCUITests/PhotonActionSheetTests.swift +++ b/Tests/XCUITests/PhotonActionSheetTests.swift @@ -68,10 +68,10 @@ class PhotonActionSheetTests: BaseTestCase { // This is not ideal but only way to get the element on iPhone 8 // for iPhone 11, that would be boundBy: 2 mozWaitForElementToExist(app.collectionViews.cells["Copy"], timeout: TIMEOUT) - mozWaitForElementToExist(app.collectionViews.scrollViews.cells["XCElementSnapshotPrivilegedValuePlaceholder"].firstMatch, timeout: TIMEOUT) - var fennecElement = app.collectionViews.scrollViews.cells.element(boundBy: 2) + + var fennecElement = app.collectionViews.scrollViews.cells.element(boundBy: 3) if iPad() { - fennecElement = app.collectionViews.scrollViews.cells.element(boundBy: 1) + fennecElement = app.collectionViews.scrollViews.cells.element(boundBy: 2) } mozWaitForElementToExist(fennecElement, timeout: 5) fennecElement.tap()