For #26087 re-enable UI tests affected by tabs tray migration to compose
This commit is contained in:
parent
521f1485e6
commit
f58442d3c5
|
@ -13,7 +13,6 @@ import mozilla.appservices.places.BookmarkRoot
|
|||
import okhttp3.mockwebserver.MockWebServer
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Ignore
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mozilla.fenix.R
|
||||
|
@ -354,7 +353,6 @@ class BookmarksTest {
|
|||
|
||||
@SmokeTest
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun openSelectionInNewTabTest() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -384,7 +382,6 @@ class BookmarksTest {
|
|||
|
||||
@SmokeTest
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun openSelectionInPrivateTabTest() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ import androidx.test.uiautomator.UiDevice
|
|||
import okhttp3.mockwebserver.MockWebServer
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Ignore
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mozilla.fenix.customannotations.SmokeTest
|
||||
|
@ -70,7 +69,6 @@ class ContextMenusTest {
|
|||
|
||||
@SmokeTest
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun verifyContextOpenLinkNewTab() {
|
||||
val pageLinks =
|
||||
TestAssetHelper.getGenericAsset(mockWebServer, 4)
|
||||
|
@ -95,7 +93,6 @@ class ContextMenusTest {
|
|||
|
||||
@SmokeTest
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun verifyContextOpenLinkPrivateTab() {
|
||||
val pageLinks =
|
||||
TestAssetHelper.getGenericAsset(mockWebServer, 4)
|
||||
|
|
|
@ -13,7 +13,6 @@ import mozilla.components.browser.storage.sync.PlacesHistoryStorage
|
|||
import okhttp3.mockwebserver.MockWebServer
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Ignore
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mozilla.fenix.R
|
||||
|
@ -221,7 +220,6 @@ class HistoryTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun openHistoryInNewTabTest() {
|
||||
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -251,7 +249,6 @@ class HistoryTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun openHistoryInPrivateTabTest() {
|
||||
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -336,9 +333,8 @@ class HistoryTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
// This test verifies the Recently Closed Tabs List and items
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
@Test
|
||||
fun verifyRecentlyClosedTabsListTest() {
|
||||
val website = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import androidx.test.uiautomator.UiDevice
|
|||
import okhttp3.mockwebserver.MockWebServer
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Ignore
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mozilla.fenix.R
|
||||
|
@ -358,7 +357,6 @@ class SettingsPrivacyTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun launchPageShortcutInPrivateModeTest() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
|
|
@ -159,7 +159,6 @@ class SmokeTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
/* Verifies the nav bar:
|
||||
- opening a web page
|
||||
- the existence of nav bar items
|
||||
|
@ -167,7 +166,7 @@ class SmokeTest {
|
|||
- the tab drawer button
|
||||
- opening a new search and dismissing the nav bar
|
||||
*/
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
@Test
|
||||
fun verifyBasicNavigationToolbarFunctionality() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -502,9 +501,8 @@ class SmokeTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
// Verifies that a recently closed item is properly opened
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
@Test
|
||||
fun openRecentlyClosedItemTest() {
|
||||
val website = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -527,9 +525,8 @@ class SmokeTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
// Verifies that tapping the "x" button removes a recently closed item from the list
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
@Test
|
||||
fun deleteRecentlyClosedTabsItemTest() {
|
||||
val website = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ package org.mozilla.fenix.ui
|
|||
import okhttp3.mockwebserver.MockWebServer
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Ignore
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mozilla.fenix.customannotations.SmokeTest
|
||||
|
@ -106,7 +105,6 @@ class StrictEnhancedTrackingProtectionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun testStrictVisitProtectionSheet() {
|
||||
val genericPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
val trackingProtectionTest =
|
||||
|
@ -162,7 +160,6 @@ class StrictEnhancedTrackingProtectionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun testStrictVisitSheetDetails() {
|
||||
val genericPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
val trackingProtectionTest =
|
||||
|
|
|
@ -72,7 +72,6 @@ class TabbedBrowsingTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun openNewTabTest() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -97,7 +96,6 @@ class TabbedBrowsingTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun openNewPrivateTabTest() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -118,7 +116,6 @@ class TabbedBrowsingTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun closeAllTabsTest() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
||||
|
@ -183,7 +180,6 @@ class TabbedBrowsingTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Failing after compose migration. See: https://github.com/mozilla-mobile/fenix/issues/26087")
|
||||
fun verifyUndoSnackBarTest() {
|
||||
// disabling these features because they interfere with the snackbar visibility
|
||||
featureSettingsHelper.setPocketEnabled(false)
|
||||
|
|
|
@ -497,7 +497,7 @@ private fun assertExistingTabList() {
|
|||
|
||||
assertTrue(
|
||||
mDevice.findObject(
|
||||
UiSelector().resourceId("$packageName:id/tab_item"),
|
||||
UiSelector().resourceId("$packageName:id/tray_list_item"),
|
||||
).waitForExists(waitingTime),
|
||||
)
|
||||
}
|
||||
|
@ -623,8 +623,7 @@ private fun tab(title: String) =
|
|||
private fun tabItem(title: String) =
|
||||
mDevice.findObject(
|
||||
UiSelector()
|
||||
.resourceId("$packageName:id/tab_item")
|
||||
.childSelector(UiSelector().text(title)),
|
||||
.textContains(title),
|
||||
)
|
||||
|
||||
private fun tabsCounter() = onView(withId(R.id.tab_button))
|
||||
|
|
Loading…
Reference in New Issue