File tree Expand file tree Collapse file tree 3 files changed +0
-41
lines changed
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui Expand file tree Collapse file tree 3 files changed +0
-41
lines changed Original file line number Diff line number Diff line change 55package org.mozilla.fenix.ui
66
77import androidx.compose.ui.test.junit4.AndroidComposeTestRule
8- import org.junit.Ignore
98import org.junit.Rule
109import org.junit.Test
1110import 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}
Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff 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
487475private fun goBackButton () = onView(allOf(withContentDescription(R .string.action_bar_up_description)))
488-
489- private fun wallpapersMenuButton () = onView(withText(" Wallpapers" ))
You can’t perform that action at this time.
0 commit comments