tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 856b3ac8ac7bf8bd33380df5e331777e09987959
parent a3839a84f3d73173bbf09f6ff958d9f0b0b665ef
Author: Delia Pop <dpop@mozilla.com>
Date:   Mon, 20 Oct 2025 08:39:48 +0000

Bug 1995000 - Remove outdated verifyWallpaperChangeTest UI test r=aaronmt

Removing this test since it is outdated.

Differential Revision: https://phabricator.services.mozilla.com/D269053

Diffstat:
Mmobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsHomepageTest.kt | 24------------------------
Mmobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 3---
Mmobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuHomepageRobot.kt | 14--------------
3 files changed, 0 insertions(+), 41 deletions(-)

diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsHomepageTest.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsHomepageTest.kt @@ -5,7 +5,6 @@ package org.mozilla.fenix.ui import androidx.compose.ui.test.junit4.AndroidComposeTestRule -import org.junit.Ignore import org.junit.Rule import org.junit.Test import org.mozilla.fenix.customannotations.SmokeTest @@ -204,27 +203,4 @@ class SettingsHomepageTest : TestSetup() { verifyPageContent(genericPage.content) } } - - // TestRail link: https://mozilla.testrail.io/index.php?/cases/view/1676359 - @Ignore("Intermittent test: https://github.com/mozilla-mobile/fenix/issues/26559") - @Test - fun verifyWallpaperChangeTest() { - val wallpapers = listOf( - "Wallpaper Item: amethyst", - "Wallpaper Item: cerulean", - "Wallpaper Item: sunrise", - ) - - for (wallpaper in wallpapers) { - homeScreen { - }.openThreeDotMenu { - }.openCustomizeHome { - openWallpapersMenu() - selectWallpaper(wallpaper) - verifySnackBarText("Wallpaper updated!") - }.clickSnackBarViewButton { - verifyWallpaperImageApplied(true) - } - } - } } diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt @@ -150,9 +150,6 @@ class HomeScreenRobot { ), ).check(matches(isDisplayed())) - fun verifyWallpaperImageApplied(isEnabled: Boolean) = - assertUIObjectExists(itemWithResId("$packageName:id/wallpaperImageView"), exists = isEnabled) - fun verifyFirstOnboardingCard(composeTestRule: ComposeTestRule) { composeTestRule.also { Log.i(TAG, "verifyFirstOnboardingCard: Trying to verify that the first onboarding screen title exists") diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuHomepageRobot.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuHomepageRobot.kt @@ -352,18 +352,6 @@ class SettingsSubMenuHomepageRobot { Log.i(TAG, "clickOpeningScreenOption: Clicked \"Opening screen\" option: $openingScreenOption") } - fun openWallpapersMenu() { - Log.i(TAG, "openWallpapersMenu: Trying to click the \"Wallpapers\" option") - wallpapersMenuButton().click() - Log.i(TAG, "openWallpapersMenu: Clicked the \"Wallpapers\" option") - } - - fun selectWallpaper(wallpaperName: String) { - Log.i(TAG, "selectWallpaper: Trying to click wallpaper: $wallpaperName") - mDevice.findObject(UiSelector().description(wallpaperName)).click() - Log.i(TAG, "selectWallpaper: Clicked wallpaper: $wallpaperName") - } - fun verifySponsoredShortcutsCheckBox(checked: Boolean) { if (checked) { Log.i(TAG, "verifySponsoredShortcutsCheckBox: Trying to verify that the \"Sponsored shortcuts\" check box is checked") @@ -485,5 +473,3 @@ private fun homepageAfterFourHoursButton() = ) private fun goBackButton() = onView(allOf(withContentDescription(R.string.action_bar_up_description))) - -private fun wallpapersMenuButton() = onView(withText("Wallpapers"))