|
|
@ -36,14 +36,16 @@ class CollectionTest {
|
|
|
|
private val collectionName = "First Collection"
|
|
|
|
private val collectionName = "First Collection"
|
|
|
|
|
|
|
|
|
|
|
|
@get:Rule
|
|
|
|
@get:Rule
|
|
|
|
val composeTestRule = AndroidComposeTestRule(
|
|
|
|
val composeTestRule =
|
|
|
|
// disabling these features to have better visibility of Collections,
|
|
|
|
AndroidComposeTestRule(
|
|
|
|
// and to avoid multiple matches on tab items
|
|
|
|
|
|
|
|
HomeActivityIntentTestRule(
|
|
|
|
HomeActivityIntentTestRule(
|
|
|
|
isPocketEnabled = false,
|
|
|
|
isHomeOnboardingDialogEnabled = false,
|
|
|
|
isJumpBackInCFREnabled = false,
|
|
|
|
isJumpBackInCFREnabled = false,
|
|
|
|
isRecentTabsFeatureEnabled = false,
|
|
|
|
isRecentTabsFeatureEnabled = false,
|
|
|
|
isRecentlyVisitedFeatureEnabled = false,
|
|
|
|
isRecentlyVisitedFeatureEnabled = false,
|
|
|
|
|
|
|
|
isPocketEnabled = false,
|
|
|
|
|
|
|
|
isWallpaperOnboardingEnabled = false,
|
|
|
|
|
|
|
|
isTCPCFREnabled = false,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) { it.activity }
|
|
|
|
) { it.activity }
|
|
|
|
|
|
|
|
|
|
|
@ -63,7 +65,6 @@ class CollectionTest {
|
|
|
|
|
|
|
|
|
|
|
|
@SmokeTest
|
|
|
|
@SmokeTest
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun createFirstCollectionTest() {
|
|
|
|
fun createFirstCollectionTest() {
|
|
|
|
val firstWebPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val secondWebPage = getGenericAsset(mockWebServer, 2)
|
|
|
|
val secondWebPage = getGenericAsset(mockWebServer, 2)
|
|
|
@ -76,7 +77,6 @@ class CollectionTest {
|
|
|
|
}.submitQuery(secondWebPage.url.toString()) {
|
|
|
|
}.submitQuery(secondWebPage.url.toString()) {
|
|
|
|
mDevice.waitForIdle()
|
|
|
|
mDevice.waitForIdle()
|
|
|
|
}.goToHomescreen {
|
|
|
|
}.goToHomescreen {
|
|
|
|
swipeToBottom()
|
|
|
|
|
|
|
|
}.clickSaveTabsToCollectionButton {
|
|
|
|
}.clickSaveTabsToCollectionButton {
|
|
|
|
longClickTab(firstWebPage.title)
|
|
|
|
longClickTab(firstWebPage.title)
|
|
|
|
selectTab(secondWebPage.title, numOfTabs = 2)
|
|
|
|
selectTab(secondWebPage.title, numOfTabs = 2)
|
|
|
@ -96,7 +96,6 @@ class CollectionTest {
|
|
|
|
|
|
|
|
|
|
|
|
@SmokeTest
|
|
|
|
@SmokeTest
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun verifyExpandedCollectionItemsTest() {
|
|
|
|
fun verifyExpandedCollectionItemsTest() {
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val webPageUrl = webPage.url.host.toString()
|
|
|
|
val webPageUrl = webPage.url.host.toString()
|
|
|
@ -146,7 +145,6 @@ class CollectionTest {
|
|
|
|
|
|
|
|
|
|
|
|
@SmokeTest
|
|
|
|
@SmokeTest
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun openAllTabsInCollectionTest() {
|
|
|
|
fun openAllTabsInCollectionTest() {
|
|
|
|
val firstTestPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstTestPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val secondTestPage = getGenericAsset(mockWebServer, 2)
|
|
|
|
val secondTestPage = getGenericAsset(mockWebServer, 2)
|
|
|
@ -179,7 +177,6 @@ class CollectionTest {
|
|
|
|
|
|
|
|
|
|
|
|
@SmokeTest
|
|
|
|
@SmokeTest
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun shareCollectionTest() {
|
|
|
|
fun shareCollectionTest() {
|
|
|
|
val firstWebsite = getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebsite = getGenericAsset(mockWebServer, 1)
|
|
|
|
val secondWebsite = getGenericAsset(mockWebServer, 2)
|
|
|
|
val secondWebsite = getGenericAsset(mockWebServer, 2)
|
|
|
@ -204,11 +201,10 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@SmokeTest
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
// Test running on beta/release builds in CI:
|
|
|
|
// Test running on beta/release builds in CI:
|
|
|
|
// caution when making changes to it, so they don't block the builds
|
|
|
|
// caution when making changes to it, so they don't block the builds
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
@SmokeTest
|
|
|
|
|
|
|
|
@Test
|
|
|
|
fun deleteCollectionTest() {
|
|
|
|
fun deleteCollectionTest() {
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
|
|
|
|
|
|
|
@ -231,9 +227,8 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
// open a webpage, and add currently opened tab to existing collection
|
|
|
|
// open a webpage, and add currently opened tab to existing collection
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
@Test
|
|
|
|
fun mainMenuSaveToExistingCollection() {
|
|
|
|
fun mainMenuSaveToExistingCollection() {
|
|
|
|
val firstWebPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val secondWebPage = getGenericAsset(mockWebServer, 2)
|
|
|
|
val secondWebPage = getGenericAsset(mockWebServer, 2)
|
|
|
@ -260,7 +255,6 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun verifyAddTabButtonOfCollectionMenu() {
|
|
|
|
fun verifyAddTabButtonOfCollectionMenu() {
|
|
|
|
val firstWebPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val secondWebPage = getGenericAsset(mockWebServer, 2)
|
|
|
|
val secondWebPage = getGenericAsset(mockWebServer, 2)
|
|
|
@ -287,7 +281,6 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun renameCollectionTest() {
|
|
|
|
fun renameCollectionTest() {
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
|
|
|
|
|
|
|
@ -308,7 +301,6 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun createSecondCollectionTest() {
|
|
|
|
fun createSecondCollectionTest() {
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
|
|
|
|
|
|
|
@ -331,7 +323,6 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun removeTabFromCollectionTest() {
|
|
|
|
fun removeTabFromCollectionTest() {
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val webPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
|
|
|
|
|
|
|
@ -354,7 +345,6 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun swipeLeftToRemoveTabFromCollectionTest() {
|
|
|
|
fun swipeLeftToRemoveTabFromCollectionTest() {
|
|
|
|
val testPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val testPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
|
|
|
|
|
|
|
@ -381,7 +371,6 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
|
|
|
|
|
|
|
fun swipeRightToRemoveTabFromCollectionTest() {
|
|
|
|
fun swipeRightToRemoveTabFromCollectionTest() {
|
|
|
|
val testPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
val testPage = getGenericAsset(mockWebServer, 1)
|
|
|
|
|
|
|
|
|
|
|
|