|
|
@ -12,6 +12,7 @@ import androidx.test.uiautomator.Until
|
|
|
|
import okhttp3.mockwebserver.MockWebServer
|
|
|
|
import okhttp3.mockwebserver.MockWebServer
|
|
|
|
import org.junit.After
|
|
|
|
import org.junit.After
|
|
|
|
import org.junit.Before
|
|
|
|
import org.junit.Before
|
|
|
|
|
|
|
|
import org.junit.Ignore
|
|
|
|
import org.junit.Rule
|
|
|
|
import org.junit.Rule
|
|
|
|
import org.junit.Test
|
|
|
|
import org.junit.Test
|
|
|
|
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
|
|
|
|
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
|
|
|
@ -79,6 +80,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
// open a webpage, and add currently opened tab to existing collection
|
|
|
|
// open a webpage, and add currently opened tab to existing collection
|
|
|
|
fun addTabToExistingCollectionTest() {
|
|
|
|
fun addTabToExistingCollectionTest() {
|
|
|
@ -105,6 +107,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun collectionMenuAddTabButtonTest() {
|
|
|
|
fun collectionMenuAddTabButtonTest() {
|
|
|
|
val secondWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 2)
|
|
|
|
val secondWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 2)
|
|
|
@ -126,6 +129,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun collectionMenuOpenAllTabsTest() {
|
|
|
|
fun collectionMenuOpenAllTabsTest() {
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
@ -141,6 +145,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun renameCollectionTest() {
|
|
|
|
fun renameCollectionTest() {
|
|
|
|
createCollection(firstCollectionName)
|
|
|
|
createCollection(firstCollectionName)
|
|
|
@ -155,6 +160,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun deleteCollectionTest() {
|
|
|
|
fun deleteCollectionTest() {
|
|
|
|
createCollection(firstCollectionName)
|
|
|
|
createCollection(firstCollectionName)
|
|
|
@ -168,6 +174,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun createCollectionFromTabTest() {
|
|
|
|
fun createCollectionFromTabTest() {
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
@ -184,6 +191,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun verifyExpandedCollectionItemsTest() {
|
|
|
|
fun verifyExpandedCollectionItemsTest() {
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
@ -208,6 +216,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun shareCollectionTest() {
|
|
|
|
fun shareCollectionTest() {
|
|
|
|
createCollection(firstCollectionName)
|
|
|
|
createCollection(firstCollectionName)
|
|
|
@ -218,6 +227,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun removeTabFromCollectionTest() {
|
|
|
|
fun removeTabFromCollectionTest() {
|
|
|
|
val webPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
|
val webPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
@ -274,6 +284,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun tabsOverflowMenuSaveCollectionTest() {
|
|
|
|
fun tabsOverflowMenuSaveCollectionTest() {
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
|
|
@ -302,6 +313,7 @@ class CollectionTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failures, see: https://github.com/mozilla-mobile/fenix/issues/10587")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun navigateBackInCollectionFlowTest() {
|
|
|
|
fun navigateBackInCollectionFlowTest() {
|
|
|
|
val secondWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 2)
|
|
|
|
val secondWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 2)
|
|
|
|