diff --git a/firefox-ios/firefox-ios-tests/Tests/AccessibilityTestPlan.xctestplan b/firefox-ios/firefox-ios-tests/Tests/AccessibilityTestPlan.xctestplan index d57e282705d54..78a69588cc5c0 100644 --- a/firefox-ios/firefox-ios-tests/Tests/AccessibilityTestPlan.xctestplan +++ b/firefox-ios/firefox-ios-tests/Tests/AccessibilityTestPlan.xctestplan @@ -277,7 +277,6 @@ "OnboardingTests\/testOnboardingSignIn()", "OnboardingTests\/testSelectBottomPlacement()", "OnboardingTests\/testSelectTopPlacement()", - "OnboardingTests\/testWhatsNewPage()", "OpeningScreenTests", "OpeningScreenTests\/testLastOpenedTab()", "PerformanceTests", diff --git a/firefox-ios/firefox-ios-tests/Tests/Smoketest.xctestplan b/firefox-ios/firefox-ios-tests/Tests/Smoketest.xctestplan index 87c29f1846d66..96a5c787e1a0e 100644 --- a/firefox-ios/firefox-ios-tests/Tests/Smoketest.xctestplan +++ b/firefox-ios/firefox-ios-tests/Tests/Smoketest.xctestplan @@ -425,7 +425,6 @@ "OnboardingTests\/testOnboardingSignIn_TAE()", "OnboardingTests\/testSelectBottomPlacement()", "OnboardingTests\/testSelectTopPlacement()", - "OnboardingTests\/testWhatsNewPage()", "OpeningScreenTests", "PerformanceTests", "PhotonActionSheetTests\/testPinToShortcuts_TAE()", diff --git a/firefox-ios/firefox-ios-tests/Tests/TAESmokeTestPlan.xctestplan b/firefox-ios/firefox-ios-tests/Tests/TAESmokeTestPlan.xctestplan index e7e94ea3d24a2..eb27e4fd5dcdc 100644 --- a/firefox-ios/firefox-ios-tests/Tests/TAESmokeTestPlan.xctestplan +++ b/firefox-ios/firefox-ios-tests/Tests/TAESmokeTestPlan.xctestplan @@ -439,7 +439,6 @@ "OnboardingTests\/testOnboardingSignIn()", "OnboardingTests\/testSelectBottomPlacement()", "OnboardingTests\/testSelectTopPlacement()", - "OnboardingTests\/testWhatsNewPage()", "OpeningScreenTests", "OpeningScreenTests\/testLastOpenedTab()", "PerformanceTests", diff --git a/firefox-ios/firefox-ios-tests/Tests/XCUITests/BaseTestCase.swift b/firefox-ios/firefox-ios-tests/Tests/XCUITests/BaseTestCase.swift index 6f1d0a5ecaa3d..da2b3414a80b5 100644 --- a/firefox-ios/firefox-ios-tests/Tests/XCUITests/BaseTestCase.swift +++ b/firefox-ios/firefox-ios-tests/Tests/XCUITests/BaseTestCase.swift @@ -468,6 +468,7 @@ class BaseTestCase: XCTestCase { urlBar.pressWithRetry(duration: 2.0, element: pasteAction) mozWaitForElementToExist(app.tables["Context Menu"]) pasteAction.waitAndTap() + springboard.buttons["Allow Paste"].tapIfExists(timeout: 0.5) mozWaitForElementToExist(urlBar) mozWaitForValueContains(urlBar, value: url) } diff --git a/firefox-ios/firefox-ios-tests/Tests/XCUITests/OnboardingTests.swift b/firefox-ios/firefox-ios-tests/Tests/XCUITests/OnboardingTests.swift index 2583d75699550..9841c9e8a1644 100644 --- a/firefox-ios/firefox-ios-tests/Tests/XCUITests/OnboardingTests.swift +++ b/firefox-ios/firefox-ios-tests/Tests/XCUITests/OnboardingTests.swift @@ -26,7 +26,12 @@ class OnboardingTests: BaseTestCase { override func tearDown() async throws { if #available(iOS 17.0, *) { - switchThemeToDarkOrLight(theme: "Light") + if self.name.contains("testSelectBottomPlacement") || iPad() { + // Toolbar option not available for iPad, so the theme is not changed there. + return + } else { + switchThemeToDarkOrLight(theme: "Light") + } } app.terminate() try await super.tearDown() @@ -287,44 +292,6 @@ class OnboardingTests: BaseTestCase { firefoxHomePageScreen.assertTopSitesItemCellExist() } - // https://mozilla.testrail.io/index.php?/cases/view/2306815 - func testWhatsNewPage() throws { - throw XCTSkip("Skipping. The option whats new page is not available on the new menu") - /* - app.buttons["\(AccessibilityIdentifiers.Onboarding.closeButton)"].waitAndTap() - // Dismiss new changes pop up if exists - app.buttons["Close"].tapIfExists() - navigator.goto(BrowserTabMenu) - navigator.performAction(Action.OpenWhatsNewPage) - waitUntilPageLoad() - app.textFields[AccessibilityIdentifiers.Browser.AddressToolbar.searchTextField].waitAndTap() - - // Extract version number from url - let url = app.textFields[AccessibilityIdentifiers.Browser.AddressToolbar.searchTextField].value - let textUrl = String(describing: url) - let start = textUrl.index(textUrl.startIndex, offsetBy: 51) - let end = textUrl.index(textUrl.startIndex, offsetBy: 56) - let range = start..