mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
Bug 1848142 - Homescreen TestRail matching
This commit is contained in:
parent
2eaaf22ca5
commit
2b15591bc7
@ -60,6 +60,7 @@ class ComposeHomeScreenTest {
|
|||||||
mockWebServer.shutdown()
|
mockWebServer.shutdown()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/235396
|
||||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
||||||
@Test
|
@Test
|
||||||
fun homeScreenItemsTest() {
|
fun homeScreenItemsTest() {
|
||||||
@ -83,8 +84,9 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/244199
|
||||||
@Test
|
@Test
|
||||||
fun privateModeScreenItemsTest() {
|
fun privateBrowsingHomeScreenItemsTest() {
|
||||||
homeScreen { }.dismissOnboarding()
|
homeScreen { }.dismissOnboarding()
|
||||||
homeScreen { }.togglePrivateBrowsingMode()
|
homeScreen { }.togglePrivateBrowsingMode()
|
||||||
|
|
||||||
@ -95,6 +97,7 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1364362
|
||||||
@Test
|
@Test
|
||||||
fun verifyJumpBackInSectionTest() {
|
fun verifyJumpBackInSectionTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
@ -145,9 +148,26 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1569867
|
||||||
|
@Test
|
||||||
|
fun verifyJumpBackInContextualHintTest() {
|
||||||
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
|
it.isJumpBackInCFREnabled = true
|
||||||
|
}
|
||||||
|
|
||||||
|
val genericPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||||
|
|
||||||
|
navigationToolbar {
|
||||||
|
}.enterURLAndEnterToBrowser(genericPage.url) {
|
||||||
|
}.goToHomescreen {
|
||||||
|
verifyJumpBackInMessage(activityTestRule)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252509
|
||||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
||||||
@Test
|
@Test
|
||||||
fun verifyPocketHomepageStoriesTest() {
|
fun verifyPocketSectionTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -175,6 +195,7 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252513
|
||||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
||||||
@Test
|
@Test
|
||||||
fun openPocketStoryItemTest() {
|
fun openPocketStoryItemTest() {
|
||||||
@ -195,8 +216,9 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252514
|
||||||
@Test
|
@Test
|
||||||
fun openPocketDiscoverMoreTest() {
|
fun pocketDiscoverMoreButtonTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -213,9 +235,10 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252515
|
||||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1844580")
|
||||||
@Test
|
@Test
|
||||||
fun selectStoriesByTopicItemTest() {
|
fun selectPocketStoriesByTopicTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -231,8 +254,9 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252516
|
||||||
@Test
|
@Test
|
||||||
fun verifyPocketLearnMoreLinkTest() {
|
fun pocketLearnMoreButtonTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -248,8 +272,9 @@ class ComposeHomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1569839
|
||||||
@Test
|
@Test
|
||||||
fun verifyCustomizeHomepageTest() {
|
fun verifyCustomizeHomepageButtonTest() {
|
||||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
|
@ -17,7 +17,6 @@ import org.mozilla.fenix.helpers.MatcherHelper.itemContainingText
|
|||||||
import org.mozilla.fenix.helpers.MatcherHelper.itemWithDescription
|
import org.mozilla.fenix.helpers.MatcherHelper.itemWithDescription
|
||||||
import org.mozilla.fenix.helpers.TestAssetHelper.getGenericAsset
|
import org.mozilla.fenix.helpers.TestAssetHelper.getGenericAsset
|
||||||
import org.mozilla.fenix.helpers.TestHelper.getStringResource
|
import org.mozilla.fenix.helpers.TestHelper.getStringResource
|
||||||
import org.mozilla.fenix.helpers.TestHelper.mDevice
|
|
||||||
import org.mozilla.fenix.ui.robots.clickPageObject
|
import org.mozilla.fenix.ui.robots.clickPageObject
|
||||||
import org.mozilla.fenix.ui.robots.navigationToolbar
|
import org.mozilla.fenix.ui.robots.navigationToolbar
|
||||||
|
|
||||||
@ -51,20 +50,6 @@ class ContextualHintsTest {
|
|||||||
mockWebServer.shutdown()
|
mockWebServer.shutdown()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
fun jumpBackInCFRTest() {
|
|
||||||
val genericPage = getGenericAsset(mockWebServer, 1)
|
|
||||||
|
|
||||||
navigationToolbar {
|
|
||||||
}.enterURLAndEnterToBrowser(genericPage.url) {
|
|
||||||
verifyCookiesProtectionHintIsDisplayed(true)
|
|
||||||
// One back press to dismiss the TCP hint
|
|
||||||
mDevice.pressBack()
|
|
||||||
}.goToHomescreen {
|
|
||||||
verifyJumpBackInMessage()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@SmokeTest
|
@SmokeTest
|
||||||
@Test
|
@Test
|
||||||
fun openTotalCookieProtectionLearnMoreLinkTest() {
|
fun openTotalCookieProtectionLearnMoreLinkTest() {
|
||||||
|
@ -55,6 +55,7 @@ class HomeScreenTest {
|
|||||||
mockWebServer.shutdown()
|
mockWebServer.shutdown()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/235396
|
||||||
@Test
|
@Test
|
||||||
fun homeScreenItemsTest() {
|
fun homeScreenItemsTest() {
|
||||||
homeScreen {}.dismissOnboarding()
|
homeScreen {}.dismissOnboarding()
|
||||||
@ -77,8 +78,9 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/244199
|
||||||
@Test
|
@Test
|
||||||
fun privateModeScreenItemsTest() {
|
fun privateBrowsingHomeScreenItemsTest() {
|
||||||
homeScreen { }.dismissOnboarding()
|
homeScreen { }.dismissOnboarding()
|
||||||
homeScreen { }.togglePrivateBrowsingMode()
|
homeScreen { }.togglePrivateBrowsingMode()
|
||||||
|
|
||||||
@ -89,6 +91,7 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1364362
|
||||||
@Test
|
@Test
|
||||||
fun verifyJumpBackInSectionTest() {
|
fun verifyJumpBackInSectionTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
@ -139,8 +142,9 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252509
|
||||||
@Test
|
@Test
|
||||||
fun verifyPocketHomepageStoriesTest() {
|
fun verifyPocketSectionTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -168,6 +172,7 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252513
|
||||||
@Test
|
@Test
|
||||||
fun openPocketStoryItemTest() {
|
fun openPocketStoryItemTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
@ -187,8 +192,9 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252514
|
||||||
@Test
|
@Test
|
||||||
fun openPocketDiscoverMoreTest() {
|
fun pocketDiscoverMoreButtonTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -205,8 +211,9 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252515
|
||||||
@Test
|
@Test
|
||||||
fun selectStoriesByTopicItemTest() {
|
fun selectPocketStoriesByTopicTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -222,8 +229,9 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2252516
|
||||||
@Test
|
@Test
|
||||||
fun verifyPocketLearnMoreLinkTest() {
|
fun pocketLearnMoreButtonTest() {
|
||||||
activityTestRule.activityRule.applySettingsExceptions {
|
activityTestRule.activityRule.applySettingsExceptions {
|
||||||
it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
it.isRecentlyVisitedFeatureEnabled = false
|
it.isRecentlyVisitedFeatureEnabled = false
|
||||||
@ -239,8 +247,9 @@ class HomeScreenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1569839
|
||||||
@Test
|
@Test
|
||||||
fun verifyCustomizeHomepageTest() {
|
fun verifyCustomizeHomepageButtonTest() {
|
||||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
|
@ -501,15 +501,11 @@ class HomeScreenRobot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun verifyJumpBackInMessage() {
|
fun verifyJumpBackInMessage(composeTestRule: ComposeTestRule) =
|
||||||
assertTrue(
|
composeTestRule
|
||||||
mDevice.findObject(
|
.onNodeWithText(
|
||||||
UiSelector().text(
|
|
||||||
getStringResource(R.string.onboarding_home_screen_jump_back_contextual_hint_2),
|
getStringResource(R.string.onboarding_home_screen_jump_back_contextual_hint_2),
|
||||||
),
|
).assertExists()
|
||||||
).waitForExists(waitingTime),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
fun getProvokingStoryPublisher(position: Int): String {
|
fun getProvokingStoryPublisher(position: Int): String {
|
||||||
val publisher = mDevice.findObject(
|
val publisher = mDevice.findObject(
|
||||||
|
Loading…
Reference in New Issue
Block a user