Bug 1857872 - Fix defaultSearchCodeBingUS test

fenix/120.0
Aaron Train 8 months ago committed by mergify[bot]
parent 4f8869aa97
commit 542b37e4b5

@ -590,7 +590,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["Bing"]!!)
// A search group is sometimes created when searching with Bing (probably redirects)
try {
verifyHistoryItemExists(shouldExist = true, Constants.searchEngineCodes["Bing"]!!)
} catch (e: AssertionError) {
openSearchGroup(queryString)
verifyHistoryItemExists(shouldExist = true, Constants.searchEngineCodes["Bing"]!!)
}
}
}

@ -626,7 +626,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["Bing"]!!)
// A search group is sometimes created when searching with Bing (probably redirects)
try {
verifyHistoryItemExists(shouldExist = true, searchEngineCodes["Bing"]!!)
} catch (e: AssertionError) {
openSearchGroup(queryString)
verifyHistoryItemExists(shouldExist = true, searchEngineCodes["Bing"]!!)
}
}
}

Loading…
Cancel
Save