mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
Bug 1832606 - Convert closeAllTabsTest
This commit is contained in:
parent
e8c21eba38
commit
097319f06c
@ -17,6 +17,8 @@ import org.mozilla.fenix.helpers.AndroidAssetDispatcher
|
|||||||
import org.mozilla.fenix.helpers.HomeActivityTestRule
|
import org.mozilla.fenix.helpers.HomeActivityTestRule
|
||||||
import org.mozilla.fenix.helpers.RetryTestRule
|
import org.mozilla.fenix.helpers.RetryTestRule
|
||||||
import org.mozilla.fenix.helpers.TestAssetHelper
|
import org.mozilla.fenix.helpers.TestAssetHelper
|
||||||
|
import org.mozilla.fenix.helpers.TestHelper
|
||||||
|
import org.mozilla.fenix.ui.robots.browserScreen
|
||||||
import org.mozilla.fenix.ui.robots.homeScreen
|
import org.mozilla.fenix.ui.robots.homeScreen
|
||||||
import org.mozilla.fenix.ui.robots.navigationToolbar
|
import org.mozilla.fenix.ui.robots.navigationToolbar
|
||||||
|
|
||||||
@ -176,31 +178,30 @@ class ComposeTabbedBrowsingTest {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("Being converted in: https://bugzilla.mozilla.org/show_bug.cgi?id=1832608")
|
|
||||||
@Test
|
@Test
|
||||||
fun verifyUndoSnackBarTest() {
|
fun verifyUndoSnackBarTest() {
|
||||||
// disabling these features because they interfere with the snackbar visibility
|
// disabling these features because they interfere with the snackbar visibility
|
||||||
// activityTestRule.applySettingsExceptions {
|
composeTestRule.activityRule.applySettingsExceptions {
|
||||||
// it.isPocketEnabled = false
|
it.isPocketEnabled = false
|
||||||
// it.isRecentTabsFeatureEnabled = false
|
it.isRecentTabsFeatureEnabled = false
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// val genericURL = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
val genericURL = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||||
//
|
|
||||||
// navigationToolbar {
|
navigationToolbar {
|
||||||
// }.enterURLAndEnterToBrowser(genericURL.url) {
|
}.enterURLAndEnterToBrowser(genericURL.url) {
|
||||||
// }.openTabDrawer {
|
}.openComposeTabDrawer(composeTestRule) {
|
||||||
// verifyExistingOpenTabs("Test_Page_1")
|
verifyExistingOpenTabs("Test_Page_1")
|
||||||
// closeTab()
|
closeTab()
|
||||||
// verifySnackBarText("Tab closed")
|
TestHelper.verifySnackBarText("Tab closed")
|
||||||
// snackBarButtonClick("UNDO")
|
TestHelper.clickSnackbarButton("UNDO")
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// browserScreen {
|
browserScreen {
|
||||||
// verifyTabCounter("1")
|
verifyTabCounter("1")
|
||||||
// }.openTabDrawer {
|
}.openComposeTabDrawer(composeTestRule) {
|
||||||
// verifyExistingOpenTabs("Test_Page_1")
|
verifyExistingOpenTabs("Test_Page_1")
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1829838")
|
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1829838")
|
||||||
|
@ -12,7 +12,10 @@ import androidx.compose.ui.test.junit4.ComposeTestRule
|
|||||||
import androidx.compose.ui.test.onNodeWithTag
|
import androidx.compose.ui.test.onNodeWithTag
|
||||||
import androidx.compose.ui.test.onNodeWithText
|
import androidx.compose.ui.test.onNodeWithText
|
||||||
import androidx.compose.ui.test.performClick
|
import androidx.compose.ui.test.performClick
|
||||||
|
import androidx.test.uiautomator.UiSelector
|
||||||
|
import junit.framework.TestCase
|
||||||
import org.mozilla.fenix.helpers.HomeActivityComposeTestRule
|
import org.mozilla.fenix.helpers.HomeActivityComposeTestRule
|
||||||
|
import org.mozilla.fenix.helpers.TestAssetHelper
|
||||||
import org.mozilla.fenix.helpers.TestHelper.mDevice
|
import org.mozilla.fenix.helpers.TestHelper.mDevice
|
||||||
import org.mozilla.fenix.tabstray.TabsTrayTestTag
|
import org.mozilla.fenix.tabstray.TabsTrayTestTag
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user