Skip to content

Commit 856b3ac

Browse files
committed
Bug 1995000 - Remove outdated verifyWallpaperChangeTest UI test r=aaronmt
Removing this test since it is outdated. Differential Revision: https://phabricator.services.mozilla.com/D269053
1 parent a3839a8 commit 856b3ac

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed

mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsHomepageTest.kt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package org.mozilla.fenix.ui
66

77
import androidx.compose.ui.test.junit4.AndroidComposeTestRule
8-
import org.junit.Ignore
98
import org.junit.Rule
109
import org.junit.Test
1110
import org.mozilla.fenix.customannotations.SmokeTest
@@ -204,27 +203,4 @@ class SettingsHomepageTest : TestSetup() {
204203
verifyPageContent(genericPage.content)
205204
}
206205
}
207-
208-
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/1676359
209-
@Ignore("Intermittent test: https://github.com/mozilla-mobile/fenix/issues/26559")
210-
@Test
211-
fun verifyWallpaperChangeTest() {
212-
val wallpapers = listOf(
213-
"Wallpaper Item: amethyst",
214-
"Wallpaper Item: cerulean",
215-
"Wallpaper Item: sunrise",
216-
)
217-
218-
for (wallpaper in wallpapers) {
219-
homeScreen {
220-
}.openThreeDotMenu {
221-
}.openCustomizeHome {
222-
openWallpapersMenu()
223-
selectWallpaper(wallpaper)
224-
verifySnackBarText("Wallpaper updated!")
225-
}.clickSnackBarViewButton {
226-
verifyWallpaperImageApplied(true)
227-
}
228-
}
229-
}
230206
}

mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ class HomeScreenRobot {
150150
),
151151
).check(matches(isDisplayed()))
152152

153-
fun verifyWallpaperImageApplied(isEnabled: Boolean) =
154-
assertUIObjectExists(itemWithResId("$packageName:id/wallpaperImageView"), exists = isEnabled)
155-
156153
fun verifyFirstOnboardingCard(composeTestRule: ComposeTestRule) {
157154
composeTestRule.also {
158155
Log.i(TAG, "verifyFirstOnboardingCard: Trying to verify that the first onboarding screen title exists")

mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuHomepageRobot.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -352,18 +352,6 @@ class SettingsSubMenuHomepageRobot {
352352
Log.i(TAG, "clickOpeningScreenOption: Clicked \"Opening screen\" option: $openingScreenOption")
353353
}
354354

355-
fun openWallpapersMenu() {
356-
Log.i(TAG, "openWallpapersMenu: Trying to click the \"Wallpapers\" option")
357-
wallpapersMenuButton().click()
358-
Log.i(TAG, "openWallpapersMenu: Clicked the \"Wallpapers\" option")
359-
}
360-
361-
fun selectWallpaper(wallpaperName: String) {
362-
Log.i(TAG, "selectWallpaper: Trying to click wallpaper: $wallpaperName")
363-
mDevice.findObject(UiSelector().description(wallpaperName)).click()
364-
Log.i(TAG, "selectWallpaper: Clicked wallpaper: $wallpaperName")
365-
}
366-
367355
fun verifySponsoredShortcutsCheckBox(checked: Boolean) {
368356
if (checked) {
369357
Log.i(TAG, "verifySponsoredShortcutsCheckBox: Trying to verify that the \"Sponsored shortcuts\" check box is checked")
@@ -485,5 +473,3 @@ private fun homepageAfterFourHoursButton() =
485473
)
486474

487475
private fun goBackButton() = onView(allOf(withContentDescription(R.string.action_bar_up_description)))
488-
489-
private fun wallpapersMenuButton() = onView(withText("Wallpapers"))

0 commit comments

Comments
 (0)