Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #28182 fix disabled verifySearchEnginesWithRTLLocale and toggleSe…
Browse files Browse the repository at this point in the history
…archEnginesShortcutListTest UI tests
  • Loading branch information
AndiAJ authored and mergify[bot] committed Dec 27, 2022
1 parent 8ab6826 commit 26a2fb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ class SettingsSearchTest {

// Expected for app language set to Arabic
@Test
@Ignore("See: https://github.com/mozilla-mobile/fenix/issues/28257")
fun verifySearchEnginesWithRTLLocale() {
homeScreen {
}.openThreeDotMenu {
Expand Down Expand Up @@ -431,7 +430,6 @@ class SettingsSearchTest {

// Expected for en-us defaults
@Test
@Ignore("Failing after changing SearchDialog homescreen interaction. See: https://github.com/mozilla-mobile/fenix/issues/28182")
fun toggleSearchEnginesShortcutListTest() {
homeScreen {
}.openThreeDotMenu {
Expand All @@ -455,6 +453,7 @@ class SettingsSearchTest {
"eBay",
"Wikipedia",
)
scrollToSearchEngineSettings(activityTestRule)
}.clickSearchEngineSettings(activityTestRule) {
toggleShowSearchShortcuts()
verifyShowSearchEnginesToggleState(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,6 @@ class SearchRobot {
assertTranslatedFocusedNavigationToolbar(toolbarHintString)

fun verifySearchEngineShortcuts(rule: ComposeTestRule, vararg searchEngines: String) {
mDevice.findObject(
UiSelector().resourceId("$packageName:id/awesome_bar"),
).swipeUp(3)

for (searchEngine in searchEngines) {
rule.waitForIdle()
rule.onNodeWithText(searchEngine).assertIsDisplayed()
Expand Down Expand Up @@ -365,10 +361,7 @@ class SearchRobot {
rule: ComposeTestRule,
interact: SettingsSubMenuSearchRobot.() -> Unit,
): SettingsSubMenuSearchRobot.Transition {
rule.onNodeWithText("Search engine settings")
.assertIsDisplayed()
.assertHasClickAction()
.performClick()
rule.onNodeWithText("Search engine settings").performClick()

SettingsSubMenuSearchRobot().interact()
return SettingsSubMenuSearchRobot.Transition()
Expand Down

0 comments on commit 26a2fb3

Please sign in to comment.