From ef5a453740e87791cb9cce9d95b53c3c17b8039c Mon Sep 17 00:00:00 2001 From: AndiAJ Date: Tue, 1 Nov 2022 12:46:22 +0200 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/27522 refactor shortcutSearchEngineSettingsTest to setDefaultSearchEngineFromShortcut --- .../java/org/mozilla/fenix/ui/SearchTest.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/SearchTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/SearchTest.kt index 95f492c64..e524841fd 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/SearchTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/SearchTest.kt @@ -142,7 +142,7 @@ class SearchTest { } @Test - fun shortcutSearchEngineSettingsTest() { + fun setDefaultSearchEngineFromShortcutsTest() { homeScreen { }.openThreeDotMenu { }.openSettings { @@ -153,7 +153,15 @@ class SearchTest { }.openSearch { scrollToSearchEngineSettings(activityTestRule) }.clickSearchEngineSettings(activityTestRule) { - verifySearchToolbar() + changeDefaultSearchEngine("DuckDuckGo") + } + + exitMenu() + + homeScreen { + }.openSearch { + }.submitQuery("firefox") { + verifyUrl("duckduckgo.com/?q=firefox") } }