Bug 1847881 - Fix UI test failure defaultSearchCodeGoogleUS (#3178)

Co-authored-by: oana.horvath <ohorvath@mozilla.com>
fenix/117.0
Oana Horvath 9 months ago committed by GitHub
parent 8f6981d318
commit 37479c142a

@ -557,7 +557,13 @@ class ComposeSearchTest {
}.openThreeDotMenu {
}.openHistory {
// Full URL no longer visible in the nav bar, so we'll check the history record
verifyHistoryItemExists(shouldExist = true, Constants.searchEngineCodes["Google"]!!)
// A search group is sometimes created when searching with Google (probably redirects)
try {
verifyHistoryItemExists(shouldExist = true, Constants.searchEngineCodes["Google"]!!)
} catch (e: AssertionError) {
openSearchGroup(queryString)
verifyHistoryItemExists(shouldExist = true, Constants.searchEngineCodes["Google"]!!)
}
}
}

@ -565,7 +565,13 @@ class SearchTest {
}.openThreeDotMenu {
}.openHistory {
// Full URL no longer visible in the nav bar, so we'll check the history record
verifyHistoryItemExists(shouldExist = true, searchEngineCodes["Google"]!!)
// A search group is sometimes created when searching with Google (probably redirects)
try {
verifyHistoryItemExists(shouldExist = true, searchEngineCodes["Google"]!!)
} catch (e: AssertionError) {
openSearchGroup(queryString)
verifyHistoryItemExists(shouldExist = true, searchEngineCodes["Google"]!!)
}
}
}

Loading…
Cancel
Save