mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/10642: Comment out verifyPageContent calls (https://github.com/mozilla-mobile/fenix/pull/11748)
fix: expectedText not called warning
This commit is contained in:
parent
16fd2479bf
commit
b99e70fa75
@ -233,7 +233,7 @@ class BookmarksTest {
|
|||||||
IdlingRegistry.getInstance().register(bookmarksListIdlingResource!!)
|
IdlingRegistry.getInstance().register(bookmarksListIdlingResource!!)
|
||||||
}.openThreeDotMenu(defaultWebPage.url) {
|
}.openThreeDotMenu(defaultWebPage.url) {
|
||||||
}.clickOpenInNewTab {
|
}.clickOpenInNewTab {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyNormalModeSelected()
|
verifyNormalModeSelected()
|
||||||
}
|
}
|
||||||
@ -252,7 +252,7 @@ class BookmarksTest {
|
|||||||
IdlingRegistry.getInstance().register(bookmarksListIdlingResource!!)
|
IdlingRegistry.getInstance().register(bookmarksListIdlingResource!!)
|
||||||
}.openThreeDotMenu(defaultWebPage.url) {
|
}.openThreeDotMenu(defaultWebPage.url) {
|
||||||
}.clickOpenInPrivateTab {
|
}.clickOpenInPrivateTab {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyPrivateModeSelected()
|
verifyPrivateModeSelected()
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("Link 1")
|
longClickMatchingText("Link 1")
|
||||||
verifyLinkContextMenuItems(genericURL.url)
|
verifyLinkContextMenuItems(genericURL.url)
|
||||||
clickContextOpenLinkInNewTab()
|
clickContextOpenLinkInNewTab()
|
||||||
@ -85,7 +85,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("Link 2")
|
longClickMatchingText("Link 2")
|
||||||
verifyLinkContextMenuItems(genericURL.url)
|
verifyLinkContextMenuItems(genericURL.url)
|
||||||
clickContextOpenLinkInPrivateTab()
|
clickContextOpenLinkInPrivateTab()
|
||||||
@ -108,7 +108,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("Link 3")
|
longClickMatchingText("Link 3")
|
||||||
verifyLinkContextMenuItems(genericURL.url)
|
verifyLinkContextMenuItems(genericURL.url)
|
||||||
clickContextCopyLink()
|
clickContextCopyLink()
|
||||||
@ -129,7 +129,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("Link 1")
|
longClickMatchingText("Link 1")
|
||||||
verifyLinkContextMenuItems(genericURL.url)
|
verifyLinkContextMenuItems(genericURL.url)
|
||||||
clickContextShareLink(genericURL.url) // verify share intent is matched with associated URL
|
clickContextShareLink(genericURL.url) // verify share intent is matched with associated URL
|
||||||
@ -146,7 +146,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("test_link_image")
|
longClickMatchingText("test_link_image")
|
||||||
verifyLinkImageContextMenuItems(imageResource.url)
|
verifyLinkImageContextMenuItems(imageResource.url)
|
||||||
clickContextOpenImageNewTab()
|
clickContextOpenImageNewTab()
|
||||||
@ -166,7 +166,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("test_link_image")
|
longClickMatchingText("test_link_image")
|
||||||
verifyLinkImageContextMenuItems(imageResource.url)
|
verifyLinkImageContextMenuItems(imageResource.url)
|
||||||
clickContextCopyImageLocation()
|
clickContextCopyImageLocation()
|
||||||
@ -187,7 +187,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("test_link_image")
|
longClickMatchingText("test_link_image")
|
||||||
verifyLinkImageContextMenuItems(imageResource.url)
|
verifyLinkImageContextMenuItems(imageResource.url)
|
||||||
clickContextSaveImage()
|
clickContextSaveImage()
|
||||||
@ -214,7 +214,7 @@ class ContextMenusTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
}.enterURLAndEnterToBrowser(pageLinks.url) {
|
||||||
verifyPageContent(pageLinks.content)
|
// verifyPageContent(pageLinks.content)
|
||||||
longClickMatchingText("Link 1")
|
longClickMatchingText("Link 1")
|
||||||
verifyLinkContextMenuItems(genericURL.url)
|
verifyLinkContextMenuItems(genericURL.url)
|
||||||
mDevice.pressBack()
|
mDevice.pressBack()
|
||||||
|
@ -81,7 +81,7 @@ class DownloadTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
clickLinkMatchingText(defaultWebPage.content)
|
clickLinkMatchingText(defaultWebPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ class DownloadTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
clickLinkMatchingText(defaultWebPage.content)
|
clickLinkMatchingText(defaultWebPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
verifyHistoryMenuView()
|
verifyHistoryMenuView()
|
||||||
@ -87,7 +87,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
@ -102,7 +102,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
@ -120,12 +120,12 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.clickOpenInNormalTab {
|
}.clickOpenInNormalTab {
|
||||||
verifyPageContent(firstWebPage.content)
|
// verifyPageContent(firstWebPage.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyNormalModeSelected()
|
verifyNormalModeSelected()
|
||||||
}
|
}
|
||||||
@ -137,12 +137,12 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.clickOpenInPrivateTab {
|
}.clickOpenInPrivateTab {
|
||||||
verifyPageContent(firstWebPage.content)
|
// verifyPageContent(firstWebPage.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyPrivateModeSelected()
|
verifyPrivateModeSelected()
|
||||||
}
|
}
|
||||||
@ -154,7 +154,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
@ -170,7 +170,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
clickDeleteHistoryButton()
|
clickDeleteHistoryButton()
|
||||||
@ -187,7 +187,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
longTapSelectItem(firstWebPage.url)
|
longTapSelectItem(firstWebPage.url)
|
||||||
@ -209,7 +209,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
closeTab()
|
closeTab()
|
||||||
}.openHomeScreen { }.openThreeDotMenu {
|
}.openHomeScreen { }.openThreeDotMenu {
|
||||||
@ -232,7 +232,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
longTapSelectItem(firstWebPage.url)
|
longTapSelectItem(firstWebPage.url)
|
||||||
@ -254,12 +254,12 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openTabDrawer { }.openHomeScreen { }
|
}.openTabDrawer { }.openHomeScreen { }
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(secondWebPage.url) {
|
}.enterURLAndEnterToBrowser(secondWebPage.url) {
|
||||||
verifyPageContent("Page content: 2")
|
// verifyPageContent("Page content: 2")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
longTapSelectItem(firstWebPage.url)
|
longTapSelectItem(firstWebPage.url)
|
||||||
@ -282,7 +282,7 @@ class HistoryTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
}.enterURLAndEnterToBrowser(firstWebPage.url) {
|
||||||
verifyPageContent("Page content: 1")
|
// verifyPageContent("Page content: 1")
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
}.openHistory {
|
}.openHistory {
|
||||||
longTapSelectItem(firstWebPage.url)
|
longTapSelectItem(firstWebPage.url)
|
||||||
|
@ -58,10 +58,10 @@ class MediaNotificationTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(videoTestPage.url) {
|
}.enterURLAndEnterToBrowser(videoTestPage.url) {
|
||||||
verifyPageContent(videoTestPage.content)
|
// verifyPageContent(videoTestPage.content)
|
||||||
clickMediaPlayerPlayButton()
|
clickMediaPlayerPlayButton()
|
||||||
waitForPlaybackToStart()
|
waitForPlaybackToStart()
|
||||||
verifyPageContent("Media file is playing")
|
// verifyPageContent("Media file is playing")
|
||||||
}.openNotificationShade {
|
}.openNotificationShade {
|
||||||
verifySystemNotificationExists(videoTestPage.title)
|
verifySystemNotificationExists(videoTestPage.title)
|
||||||
clickMediaSystemNotificationControlButton("Pause")
|
clickMediaSystemNotificationControlButton("Pause")
|
||||||
@ -92,7 +92,7 @@ class MediaNotificationTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(audioTestPage.url) {
|
}.enterURLAndEnterToBrowser(audioTestPage.url) {
|
||||||
verifyPageContent(audioTestPage.content)
|
// verifyPageContent(audioTestPage.content)
|
||||||
clickMediaPlayerPlayButton()
|
clickMediaPlayerPlayButton()
|
||||||
waitForPlaybackToStart()
|
waitForPlaybackToStart()
|
||||||
}.openNotificationShade {
|
}.openNotificationShade {
|
||||||
@ -125,10 +125,10 @@ class MediaNotificationTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(audioTestPage.url) {
|
}.enterURLAndEnterToBrowser(audioTestPage.url) {
|
||||||
verifyPageContent(audioTestPage.content)
|
// verifyPageContent(audioTestPage.content)
|
||||||
clickMediaPlayerPlayButton()
|
clickMediaPlayerPlayButton()
|
||||||
waitForPlaybackToStart()
|
waitForPlaybackToStart()
|
||||||
verifyPageContent("Media file is playing")
|
// verifyPageContent("Media file is playing")
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyTabMediaControlButtonState("Pause")
|
verifyTabMediaControlButtonState("Pause")
|
||||||
clickTabMediaControlButton()
|
clickTabMediaControlButton()
|
||||||
@ -146,10 +146,10 @@ class MediaNotificationTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(audioTestPage.url) {
|
}.enterURLAndEnterToBrowser(audioTestPage.url) {
|
||||||
verifyPageContent(audioTestPage.content)
|
// verifyPageContent(audioTestPage.content)
|
||||||
clickMediaPlayerPlayButton()
|
clickMediaPlayerPlayButton()
|
||||||
waitForPlaybackToStart()
|
waitForPlaybackToStart()
|
||||||
verifyPageContent("Media file is playing")
|
// verifyPageContent("Media file is playing")
|
||||||
}.openNotificationShade {
|
}.openNotificationShade {
|
||||||
verifySystemNotificationExists("A site is playing media")
|
verifySystemNotificationExists("A site is playing media")
|
||||||
clickMediaSystemNotificationControlButton("Pause")
|
clickMediaSystemNotificationControlButton("Pause")
|
||||||
|
@ -55,10 +55,10 @@ class NavigationToolbarTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openNavigationToolbar {
|
}.openNavigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(nextWebPage.url) {
|
}.enterURLAndEnterToBrowser(nextWebPage.url) {
|
||||||
verifyPageContent(nextWebPage.content)
|
// verifyPageContent(nextWebPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Re-open the three-dot menu for verification
|
// Re-open the three-dot menu for verification
|
||||||
@ -66,7 +66,7 @@ class NavigationToolbarTest {
|
|||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
verifyThreeDotMenuExists()
|
verifyThreeDotMenuExists()
|
||||||
}.goBack {
|
}.goBack {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,12 +77,12 @@ class NavigationToolbarTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openNavigationToolbar {
|
}.openNavigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(nextWebPage.url) {
|
}.enterURLAndEnterToBrowser(nextWebPage.url) {
|
||||||
verifyPageContent(nextWebPage.content)
|
// verifyPageContent(nextWebPage.content)
|
||||||
mDevice.pressBack()
|
mDevice.pressBack()
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Re-open the three-dot menu for verification
|
// Re-open the three-dot menu for verification
|
||||||
@ -91,7 +91,7 @@ class NavigationToolbarTest {
|
|||||||
verifyThreeDotMenuExists()
|
verifyThreeDotMenuExists()
|
||||||
verifyForwardButton()
|
verifyForwardButton()
|
||||||
}.goForward {
|
}.goForward {
|
||||||
verifyPageContent(nextWebPage.content)
|
// verifyPageContent(nextWebPage.content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ class NavigationToolbarTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(refreshWebPage.url) {
|
}.enterURLAndEnterToBrowser(refreshWebPage.url) {
|
||||||
verifyPageContent("DEFAULT")
|
// verifyPageContent("DEFAULT")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use refresh from the three-dot menu
|
// Use refresh from the three-dot menu
|
||||||
@ -111,7 +111,7 @@ class NavigationToolbarTest {
|
|||||||
verifyThreeDotMenuExists()
|
verifyThreeDotMenuExists()
|
||||||
verifyRefreshButton()
|
verifyRefreshButton()
|
||||||
}.refreshPage {
|
}.refreshPage {
|
||||||
verifyPageContent("REFRESHED")
|
// verifyPageContent("REFRESHED")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ class NavigationToolbarTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ class NavigationToolbarTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(loremIpsumWebPage.url) {
|
}.enterURLAndEnterToBrowser(loremIpsumWebPage.url) {
|
||||||
verifyPageContent(loremIpsumWebPage.content)
|
// verifyPageContent(loremIpsumWebPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
|
@ -70,7 +70,7 @@ class ReaderViewTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
||||||
verifyPageContent(readerViewPage.content)
|
// verifyPageContent(readerViewPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
||||||
@ -99,7 +99,7 @@ class ReaderViewTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(genericPage.url) {
|
}.enterURLAndEnterToBrowser(genericPage.url) {
|
||||||
verifyPageContent(genericPage.content)
|
// verifyPageContent(genericPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
readerViewRobot {
|
readerViewRobot {
|
||||||
@ -120,7 +120,7 @@ class ReaderViewTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
||||||
verifyPageContent(readerViewPage.content)
|
// verifyPageContent(readerViewPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
||||||
@ -152,7 +152,7 @@ class ReaderViewTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
||||||
verifyPageContent(readerViewPage.content)
|
// verifyPageContent(readerViewPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
||||||
@ -187,7 +187,7 @@ class ReaderViewTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
||||||
verifyPageContent(readerViewPage.content)
|
// verifyPageContent(readerViewPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
||||||
@ -222,7 +222,7 @@ class ReaderViewTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
||||||
verifyPageContent(readerViewPage.content)
|
// verifyPageContent(readerViewPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
||||||
@ -263,7 +263,7 @@ class ReaderViewTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
}.enterURLAndEnterToBrowser(readerViewPage.url) {
|
||||||
verifyPageContent(readerViewPage.content)
|
// verifyPageContent(readerViewPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
IdlingRegistry.getInstance().register(readerViewNotificationDot)
|
||||||
|
@ -134,21 +134,21 @@ class SettingsBasicsTest {
|
|||||||
homeScreen {
|
homeScreen {
|
||||||
}.openNavigationToolbar {
|
}.openNavigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(page1.url) {
|
}.enterURLAndEnterToBrowser(page1.url) {
|
||||||
verifyPageContent(page1.content)
|
// verifyPageContent(page1.content)
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
clickAddBookmarkButton()
|
clickAddBookmarkButton()
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(page2.url) {
|
}.enterURLAndEnterToBrowser(page2.url) {
|
||||||
verifyPageContent(page2.content)
|
// verifyPageContent(page2.content)
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
clickAddBookmarkButton()
|
clickAddBookmarkButton()
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(page3.url) {
|
}.enterURLAndEnterToBrowser(page3.url) {
|
||||||
verifyPageContent(page3.content)
|
// verifyPageContent(page3.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
|
@ -50,7 +50,7 @@ class ShareButtonTest {
|
|||||||
// - Visit a URL, wait until it's loaded
|
// - Visit a URL, wait until it's loaded
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// From the 3-dot menu next to the Select share menu
|
// From the 3-dot menu next to the Select share menu
|
||||||
|
@ -51,7 +51,7 @@ class SmokeTest {
|
|||||||
homeScreen {
|
homeScreen {
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
verifyNavURLBarItems()
|
verifyNavURLBarItems()
|
||||||
}.openNavigationToolbar {
|
}.openNavigationToolbar {
|
||||||
}.goBackToWebsite {
|
}.goBackToWebsite {
|
||||||
|
@ -65,7 +65,7 @@ class TabbedBrowsingTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
verifyTabCounter("1")
|
verifyTabCounter("1")
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyExistingTabList()
|
verifyExistingTabList()
|
||||||
@ -92,7 +92,7 @@ class TabbedBrowsingTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
}.openNewTabAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
verifyTabCounter("1")
|
verifyTabCounter("1")
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyExistingTabList()
|
verifyExistingTabList()
|
||||||
@ -110,7 +110,7 @@ class TabbedBrowsingTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyExistingTabList()
|
verifyExistingTabList()
|
||||||
}.openTabsListThreeDotMenu {
|
}.openTabsListThreeDotMenu {
|
||||||
@ -128,7 +128,7 @@ class TabbedBrowsingTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyPrivateModeSelected()
|
verifyPrivateModeSelected()
|
||||||
verifyExistingTabList()
|
verifyExistingTabList()
|
||||||
@ -149,7 +149,7 @@ class TabbedBrowsingTest {
|
|||||||
genericURLS.forEachIndexed { index, element ->
|
genericURLS.forEachIndexed { index, element ->
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.openNewTabAndEnterToBrowser(element.url) {
|
}.openNewTabAndEnterToBrowser(element.url) {
|
||||||
verifyPageContent(element.content)
|
// verifyPageContent(element.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyExistingOpenTabs("Test_Page_${index + 1}")
|
verifyExistingOpenTabs("Test_Page_${index + 1}")
|
||||||
verifyCloseTabsButton("Test_Page_${index + 1}")
|
verifyCloseTabsButton("Test_Page_${index + 1}")
|
||||||
@ -182,7 +182,7 @@ class TabbedBrowsingTest {
|
|||||||
genericURLS.forEachIndexed { index, element ->
|
genericURLS.forEachIndexed { index, element ->
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.openNewTabAndEnterToBrowser(element.url) {
|
}.openNewTabAndEnterToBrowser(element.url) {
|
||||||
verifyPageContent(element.content)
|
// verifyPageContent(element.content)
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
verifyExistingOpenTabs("Test_Page_${index + 1}")
|
verifyExistingOpenTabs("Test_Page_${index + 1}")
|
||||||
verifyCloseTabsButton("Test_Page_${index + 1}")
|
verifyCloseTabsButton("Test_Page_${index + 1}")
|
||||||
|
@ -53,7 +53,7 @@ class TopSitesTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
verifyAddFirefoxHome()
|
verifyAddFirefoxHome()
|
||||||
}.addToFirefoxHome {
|
}.addToFirefoxHome {
|
||||||
@ -72,7 +72,7 @@ class TopSitesTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
verifyAddFirefoxHome()
|
verifyAddFirefoxHome()
|
||||||
}.addToFirefoxHome {
|
}.addToFirefoxHome {
|
||||||
@ -82,7 +82,7 @@ class TopSitesTest {
|
|||||||
verifyExistingTopSitesList()
|
verifyExistingTopSitesList()
|
||||||
verifyExistingTopSitesTabs(defaultWebPageTitle)
|
verifyExistingTopSitesTabs(defaultWebPageTitle)
|
||||||
}.openTopSiteTabWithTitle(title = defaultWebPageTitle) {
|
}.openTopSiteTabWithTitle(title = defaultWebPageTitle) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
verifyUrl(defaultWebPage.url.toString().replace("http://", ""))
|
verifyUrl(defaultWebPage.url.toString().replace("http://", ""))
|
||||||
}.openTabDrawer {
|
}.openTabDrawer {
|
||||||
}.openHomeScreen {
|
}.openHomeScreen {
|
||||||
@ -103,7 +103,7 @@ class TopSitesTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
verifyAddFirefoxHome()
|
verifyAddFirefoxHome()
|
||||||
}.addToFirefoxHome {
|
}.addToFirefoxHome {
|
||||||
@ -126,7 +126,7 @@ class TopSitesTest {
|
|||||||
|
|
||||||
navigationToolbar {
|
navigationToolbar {
|
||||||
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
||||||
verifyPageContent(defaultWebPage.content)
|
// verifyPageContent(defaultWebPage.content)
|
||||||
}.openThreeDotMenu {
|
}.openThreeDotMenu {
|
||||||
verifyAddFirefoxHome()
|
verifyAddFirefoxHome()
|
||||||
}.addToFirefoxHome {
|
}.addToFirefoxHome {
|
||||||
|
@ -78,11 +78,14 @@ class BrowserRobot {
|
|||||||
|
|
||||||
/* Asserts that the text within DOM element with ID="testContent" has the given text, i.e.
|
/* Asserts that the text within DOM element with ID="testContent" has the given text, i.e.
|
||||||
* document.querySelector('#testContent').innerText == expectedText
|
* document.querySelector('#testContent').innerText == expectedText
|
||||||
|
*
|
||||||
|
* This function is not working at intended and needs a replacement.
|
||||||
*/
|
*/
|
||||||
fun verifyPageContent(expectedText: String) {
|
|
||||||
val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
|
/* fun verifyPageContent(expectedText: String) {
|
||||||
mDevice.waitNotNull(Until.findObject(By.textContains(expectedText)), waitingTime)
|
// val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
|
||||||
}
|
// mDevice.waitNotNull(Until.findObject(By.textContains(expectedText)), waitingTime)
|
||||||
|
}*/
|
||||||
|
|
||||||
fun verifyTabCounter(expectedText: String) {
|
fun verifyTabCounter(expectedText: String) {
|
||||||
onView(withId(R.id.counter_text))
|
onView(withId(R.id.counter_text))
|
||||||
|
Loading…
Reference in New Issue
Block a user