From c4ef983bb4cc464fe03653c947f2f42caeb29538 Mon Sep 17 00:00:00 2001 From: Clare So Date: Tue, 1 Apr 2025 18:24:19 -0400 Subject: [PATCH] Revert close button back to StandardImageIdentifiers.Large.cross --- .../firefox-ios-tests/Tests/XCUITests/TabCounterTests.swift | 2 +- firefox-ios/firefox-ios-tests/Tests/XCUITests/TabsTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabCounterTests.swift b/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabCounterTests.swift index 33966b54d062..71bdeeb1d546 100644 --- a/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabCounterTests.swift +++ b/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabCounterTests.swift @@ -68,7 +68,7 @@ class TabCounterTests: BaseTestCase { XCTAssertTrue(tabsOpenTabTray.hasSuffix("2")) app.otherElements["Tabs Tray"].cells - .element(boundBy: 0).buttons[AccessibilityIdentifiers.TabTray.closeButton].waitAndTap() + .element(boundBy: 0).buttons[StandardImageIdentifiers.Large.cross].waitAndTap() } app.otherElements["Tabs Tray"].cells.element(boundBy: 0).waitAndTap() diff --git a/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabsTests.swift b/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabsTests.swift index 0f1fb18dd535..165701ef17be 100644 --- a/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabsTests.swift +++ b/firefox-ios/firefox-ios-tests/Tests/XCUITests/TabsTests.swift @@ -442,7 +442,7 @@ class TabsTests: BaseTestCase { } else { // Tap "x" app.cells[AccessibilityIdentifiers.TabTray.tabCell+"_1_2"] - .buttons[AccessibilityIdentifiers.TabTray.closeButton].waitAndTap() + .buttons[StandardImageIdentifiers.Large.cross].waitAndTap() mozWaitForElementToNotExist(app.cells[AccessibilityIdentifiers.TabTray.tabCell+"_1_2"]) // Long press tab. Tap "Close Tab" from the context menu