Skip to content

Commit cf5a570

Browse files
authored
[MTE-5069] - fixes on new auto failures (#31235)
1 parent 532ef9f commit cf5a570

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

firefox-ios/firefox-ios-tests/Tests/XCUITests/BaseTestCase.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ class BaseTestCase: XCTestCase {
465465
app.buttons["Cancel"].tapWithRetry()
466466
let urlBar = app.textFields[AccessibilityIdentifiers.Browser.AddressToolbar.searchTextField]
467467
let pasteAction = app.tables.buttons[AccessibilityIdentifiers.Photon.pasteAction]
468+
urlBar.waitAndTap()
468469
urlBar.pressWithRetry(duration: 2.0, element: pasteAction)
469470
mozWaitForElementToExist(app.tables["Context Menu"])
470471
pasteAction.waitAndTap()

firefox-ios/firefox-ios-tests/Tests/XCUITests/BookmarksTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class BookmarksTests: FeatureFlaggedTestBase {
7070
// Go back, check it's still bookmarked, check it's on bookmarks home panel
7171
waitForTabsButton()
7272
navigator.goto(TabTray)
73-
let identifier = "\(AccessibilityIdentifiers.TabTray.tabCell)_1_0"
73+
let identifier = "\(AccessibilityIdentifiers.TabTray.tabCell)_0_0"
7474
XCTAssertEqual(app.cells[identifier].label, "Example Domain")
7575
app.cells[identifier].waitAndTap()
7676
navigator.nowAt(BrowserTab)

firefox-ios/firefox-ios-tests/Tests/XCUITests/NavigationTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class NavigationTest: BaseTestCase {
622622
}
623623
numTabs = app.otherElements[tabsTray].cells.count
624624
XCTAssertEqual(numTabs, 1, "Total number of private opened tabs should be 1")
625-
let identifier = "TabDisplayView.tabCell_1_0"
625+
let identifier = "TabDisplayView.tabCell_0_0"
626626
XCTAssertEqual(app.cells.matching(identifier: identifier).element.label,
627627
"Example Domains")
628628
}

0 commit comments

Comments
 (0)