mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/16838: deleted mainMenuOpenInAppTest
This commit is contained in:
parent
29047c674f
commit
01caa9bfaf
@ -5,7 +5,6 @@
|
||||
package org.mozilla.fenix.ui
|
||||
|
||||
import android.view.View
|
||||
import androidx.core.net.toUri
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import androidx.test.espresso.IdlingRegistry
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
@ -267,19 +266,6 @@ class SmokeTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun mainMenuOpenInAppTest() {
|
||||
// Using youtube as is a default app available in every Android emulator/device
|
||||
val youtubeUrl = "www.youtube.com"
|
||||
|
||||
navigationToolbar {
|
||||
}.enterURLAndEnterToBrowser(youtubeUrl.toUri()) {
|
||||
verifyPageContent("YouTube")
|
||||
}.openThreeDotMenu {
|
||||
verifyOpenInAppButton()
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun verifyETPShieldNotDisplayedIfOFFGlobally() {
|
||||
val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||
|
@ -115,7 +115,6 @@ class ThreeDotMenuMainRobot {
|
||||
fun verifyAddFirefoxHome() = assertAddToFirefoxHome()
|
||||
fun verifyAddToMobileHome() = assertAddToMobileHome()
|
||||
fun verifyDesktopSite() = assertDesktopSite()
|
||||
fun verifyOpenInAppButton() = assertOpenInAppButton()
|
||||
fun verifyDownloadsButton() = assertDownloadsButton()
|
||||
|
||||
fun verifyThreeDotMainMenuItems() {
|
||||
@ -519,15 +518,6 @@ private fun assertDesktopSite() {
|
||||
desktopSiteButton().check(matches(isDisplayed()))
|
||||
}
|
||||
|
||||
private fun assertOpenInAppButton() {
|
||||
onView(withId(R.id.mozac_browser_menu_recyclerView))
|
||||
.perform(
|
||||
RecyclerViewActions.scrollTo<RecyclerView.ViewHolder>(
|
||||
hasDescendant(withText(R.string.browser_menu_open_app_link))
|
||||
)
|
||||
).check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
|
||||
}
|
||||
|
||||
private fun downloadsButton() = onView(withText(R.string.library_downloads))
|
||||
private fun assertDownloadsButton() {
|
||||
onView(withId(R.id.mozac_browser_menu_menuView)).perform(swipeDown())
|
||||
|
Loading…
Reference in New Issue
Block a user