2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

Bug 1807287 - Fix flaky toggleShowClipboardSuggestionsTest UI test

This commit is contained in:
AndiAJ 2023-05-26 13:09:07 +03:00 committed by mergify[bot]
parent 5ae3c08bba
commit 11495e43b4

View File

@ -226,8 +226,11 @@ class SettingsRobot {
fun openSearchSubMenu(interact: SettingsSubMenuSearchRobot.() -> Unit):
SettingsSubMenuSearchRobot.Transition {
fun searchEngineButton() = onView(withText("Search"))
searchEngineButton().click()
itemWithText(getStringResource(R.string.preferences_search))
.also {
it.waitForExists(waitingTimeShort)
it.click()
}
SettingsSubMenuSearchRobot().interact()
return SettingsSubMenuSearchRobot.Transition()