mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1919521 - Fix verifySearchBarItemsTest tests on API 34 r=ohorvath
The UI test failed on API 34 when trying to verify that the scan button is not displayed. I've added a 1s wait for the app window to be updated (waitForAppWindowToBeUpdated) The UI test successfully passed: - 25x on API 30 - 50x on API 34 Differential Revision: https://phabricator.services.mozilla.com/D222618
This commit is contained in:
parent
e9ea2d8aa9
commit
0bb2f5ee5c
@ -38,6 +38,7 @@ import org.mozilla.fenix.helpers.TestAssetHelper.waitingTimeLong
|
||||
import org.mozilla.fenix.helpers.TestHelper
|
||||
import org.mozilla.fenix.helpers.TestHelper.exitMenu
|
||||
import org.mozilla.fenix.helpers.TestHelper.verifySnackBarText
|
||||
import org.mozilla.fenix.helpers.TestHelper.waitForAppWindowToBeUpdated
|
||||
import org.mozilla.fenix.helpers.TestSetup
|
||||
import org.mozilla.fenix.ui.robots.clickContextMenuItem
|
||||
import org.mozilla.fenix.ui.robots.clickPageObject
|
||||
@ -95,7 +96,6 @@ class SearchTest : TestSetup() {
|
||||
}
|
||||
|
||||
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/2154189
|
||||
@SdkSuppress(maxSdkVersion = 30)
|
||||
@Test
|
||||
fun verifySearchBarItemsTest() {
|
||||
navigationToolbar {
|
||||
@ -107,6 +107,7 @@ class SearchTest : TestSetup() {
|
||||
verifyVoiceSearchButtonVisibility(enabled = true)
|
||||
verifySearchBarPlaceholder("Search or enter address")
|
||||
typeSearch("mozilla ")
|
||||
waitForAppWindowToBeUpdated()
|
||||
verifyScanButtonVisibility(visible = false)
|
||||
verifyVoiceSearchButtonVisibility(enabled = true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user