From 0e71a1570b564b9b9fde869791fa1b62397a1736 Mon Sep 17 00:00:00 2001 From: AndiAJ Date: Tue, 20 Dec 2022 13:51:53 +0200 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/26286 new privateHomeThreeDotMenuItemsTest UI test --- .../mozilla/fenix/ui/ThreeDotMenuMainTest.kt | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/ThreeDotMenuMainTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/ThreeDotMenuMainTest.kt index ee1872a257..a47f1822b4 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/ThreeDotMenuMainTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/ThreeDotMenuMainTest.kt @@ -87,4 +87,55 @@ class ThreeDotMenuMainTest { verifySettingsView() } } + + // Verifies the list of items in the homescreen's 3 dot main menu in private browsing + @Test + fun privateHomeThreeDotMenuItemsTest() { + homeScreen { + }.togglePrivateBrowsingMode() + homeScreen { + }.openThreeDotMenu { + verifyHomeThreeDotMainMenuItems(isRequestDesktopSiteEnabled = false) + }.openBookmarks { + verifyBookmarksMenuView() + }.goBack { + }.openThreeDotMenu { + }.openHistory { + verifyHistoryMenuView() + }.goBack { + }.openThreeDotMenu { + }.openDownloadsManager { + verifyEmptyDownloadsList() + }.goBack { + }.openThreeDotMenu { + }.openAddonsManagerMenu { + verifyAddonsItems() + }.goBack { + }.openThreeDotMenu { + }.openSyncSignIn { + verifyTurnOnSyncMenu() + }.goBack { + // Desktop toggle + }.openThreeDotMenu { + }.switchDesktopSiteMode { + } + homeScreen { + }.openThreeDotMenu { + verifyDesktopSiteModeEnabled(isRequestDesktopSiteEnabled = true) + }.openWhatsNew { + verifyWhatsNewURL() + }.goToHomescreen { + }.openThreeDotMenu { + }.openHelp { + verifyHelpUrl() + }.goToHomescreen { + }.openThreeDotMenu { + }.openCustomizeHome { + verifyHomePageView() + }.goBack { + }.openThreeDotMenu { + }.openSettings { + verifySettingsView() + } + } }