mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 01:44:42 +00:00
Bug 1922485 - Update disabled UI tests for the API 34 config r=ajoltan,aaronmt
Enables 2 tests which proved to work fine on the new device. Updates some bug links to old disabled tests. Re-ran the disabled tests and left disabled the ones which are still blocked by different issues. Differential Revision: https://phabricator.services.mozilla.com/D224481
This commit is contained in:
parent
7714d17959
commit
5e691807c7
@ -100,7 +100,7 @@ class FirefoxSuggestTest : TestSetup() {
|
||||
|
||||
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/2348361
|
||||
// Known bug that might affect this UI test: https://bugzilla.mozilla.org/show_bug.cgi?id=1813587
|
||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1898416")
|
||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1898435")
|
||||
@SmokeTest
|
||||
@Test
|
||||
fun verifyFirefoxSuggestSponsoredSearchResultsTest() {
|
||||
@ -123,7 +123,7 @@ class FirefoxSuggestTest : TestSetup() {
|
||||
|
||||
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/2348362
|
||||
// Known bug that might affect this UI test: https://bugzilla.mozilla.org/show_bug.cgi?id=1813587
|
||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1898457")
|
||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1898435")
|
||||
@Test
|
||||
fun verifyFirefoxSuggestSponsoredSearchResultsWithPartialKeywordTest() {
|
||||
runWithCondition(TestHelper.appContext.settings().enableFxSuggest) {
|
||||
@ -145,7 +145,7 @@ class FirefoxSuggestTest : TestSetup() {
|
||||
|
||||
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/2348363
|
||||
// Known bug that might affect this UI test: https://bugzilla.mozilla.org/show_bug.cgi?id=1813587
|
||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1879011")
|
||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1898435")
|
||||
@Test
|
||||
fun openFirefoxSuggestSponsoredSearchResultsTest() {
|
||||
runWithCondition(TestHelper.appContext.settings().enableFxSuggest) {
|
||||
|
@ -356,7 +356,7 @@ class SearchTest : TestSetup() {
|
||||
}
|
||||
|
||||
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/1591782
|
||||
@Ignore("Failing due to known bug, see https://github.com/mozilla-mobile/fenix/issues/23818")
|
||||
@Ignore("Failing due to known bug, see https://bugzilla.mozilla.org/show_bug.cgi?id=1807294")
|
||||
@Test
|
||||
fun searchGroupIsGeneratedWhenNavigatingInTheSameTabTest() {
|
||||
// setting our custom mockWebServer search URL
|
||||
@ -454,7 +454,7 @@ class SearchTest : TestSetup() {
|
||||
}
|
||||
|
||||
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/1592242
|
||||
@Ignore("Test run timing out: https://github.com/mozilla-mobile/fenix/issues/27704")
|
||||
@Ignore("Failing, see https://bugzilla.mozilla.org/show_bug.cgi?id=1922538")
|
||||
@Test
|
||||
fun deleteSearchGroupFromHomeScreenTest() {
|
||||
val firstPageUrl = TestAssetHelper.getGenericAsset(searchMockServer, 1).url
|
||||
@ -495,7 +495,6 @@ class SearchTest : TestSetup() {
|
||||
}
|
||||
|
||||
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/1592235
|
||||
@Ignore("Test run timing out: https://github.com/mozilla-mobile/fenix/issues/27704")
|
||||
@Test
|
||||
fun openAPageFromHomeScreenSearchGroupTest() {
|
||||
val firstPageUrl = TestAssetHelper.getGenericAsset(searchMockServer, 1).url
|
||||
@ -523,7 +522,7 @@ class SearchTest : TestSetup() {
|
||||
}.closeAllTabs {
|
||||
verifyRecentlyVisitedSearchGroupDisplayed(shouldBeDisplayed = true, searchTerm = queryString, groupSize = 3)
|
||||
}.openRecentlyVisitedSearchGroupHistoryList(queryString) {
|
||||
}.openWebsite(firstPageUrl) {
|
||||
}.openWebsiteFromSearchGroup(firstPageUrl) {
|
||||
verifyUrl(firstPageUrl.toString())
|
||||
}.goToHomescreen {
|
||||
}.openRecentlyVisitedSearchGroupHistoryList(queryString) {
|
||||
|
@ -189,6 +189,16 @@ class HistoryRobot {
|
||||
return BrowserRobot.Transition()
|
||||
}
|
||||
|
||||
fun openWebsiteFromSearchGroup(url: Uri, interact: BrowserRobot.() -> Unit): BrowserRobot.Transition {
|
||||
assertUIObjectExists(itemWithResId("$packageName:id/history_metadata_group_list"))
|
||||
Log.i(TAG, "openWebsiteFromSearchGroup: Trying to click group item with url: $url")
|
||||
onView(withText(url.toString())).click()
|
||||
Log.i(TAG, "openWebsiteFromSearchGroup: Clicked group item with url: $url")
|
||||
|
||||
BrowserRobot().interact()
|
||||
return BrowserRobot.Transition()
|
||||
}
|
||||
|
||||
fun openRecentlyClosedTabs(interact: RecentlyClosedTabsRobot.() -> Unit): RecentlyClosedTabsRobot.Transition {
|
||||
Log.i(TAG, "openRecentlyClosedTabs: Waiting for $waitingTime ms for \"Recently closed tabs\" button to exist")
|
||||
recentlyClosedTabsListButton().waitForExists(waitingTime)
|
||||
|
Loading…
Reference in New Issue
Block a user