Skip to content

Commit

Permalink
update photon action sheet UI Tests to pass on iOS 17
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelrios authored and OrlaM committed Oct 10, 2023
1 parent fe2a7dc commit 53973f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/XCUITests/PhotonActionSheetTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 53973f9

Please sign in to comment.