Skip to content

Commit b341bea

Browse files
0nkoCDRussell
andauthored
Fix: Split omnibar E2E tests (#7236)
Task/Issue URL: https://app.asana.com/1/137249556945/project/414730916066338/task/1212197579515876?focus=true ### Description This PR fixes the failing split omnibar E2E tests. ### Steps to test this PR - [x] Make sure the [tests](https://github.com/duckduckgo/Android/actions/runs/19737730167) pass --------- Co-authored-by: Craig Russell <CDRussell@users.noreply.github.com>
1 parent a94e72f commit b341bea

File tree

1 file changed

+41
-10
lines changed

1 file changed

+41
-10
lines changed

.maestro/omnibar/split_omnibar_search.yaml

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ tags:
3737
- runFlow: ../shared/browser_screen/click_on_menu_button.yaml
3838
- tapOn:
3939
text: "add bookmark"
40-
- runFlow: ../shared/browser_screen/click_on_menu_button.yaml
40+
- action: back
4141
- tapOn:
42-
text: "bookmarks"
42+
id: "bookmarksImageView"
4343
- tapOn:
4444
id: "com.duckduckgo.mobile.android:id/trailingIcon"
4545
index: 0
@@ -58,14 +58,9 @@ tags:
5858
id: "browserLayout"
5959
- extendedWaitUntil:
6060
visible:
61+
id: "omnibarTextInput"
6162
text: "https://www.eff.org/"
62-
childOf:
63-
id: "omnibarTextInput"
6463
timeout: 10000
65-
- assertVisible:
66-
text: "https://www.eff.org/"
67-
childOf:
68-
id: "omnibarTextInput"
6964

7065
# verify that tapping on a favorite opens the web page (SERP in this case)
7166
- tapOn:
@@ -77,10 +72,46 @@ tags:
7772
- assertVisible:
7873
id: "browserLayout"
7974
- assertVisible:
75+
id: "omnibarTextInput"
8076
text: "reddit"
81-
childOf:
82-
id: "omnibarTextInput"
8377
- assertVisible:
8478
text: "reddit"
8579
childOf:
8680
id: "browserLayout"
81+
82+
# verify that tapping on a tabs menu opens the tab switcher
83+
- tapOn:
84+
id: "tabsButton"
85+
- assertVisible:
86+
id: "newTabButton"
87+
- assertVisible:
88+
id: "fireButton"
89+
- assertVisible:
90+
id: "menuButton"
91+
- tapOn:
92+
id: "cardContentsContainer"
93+
- assertVisible:
94+
id: "omnibarTextInput"
95+
text: "reddit"
96+
97+
# verify that tapping on a new tab button opens a new tab
98+
- tapOn:
99+
id: "newTabButton"
100+
- hideKeyboard
101+
- assertVisible:
102+
text: "2"
103+
childOf:
104+
id: "tabsButton"
105+
- assertVisible:
106+
id: "autofillButton"
107+
- assertNotVisible:
108+
id: "newTabButton"
109+
- tapOn:
110+
id: "quickAccessFaviconCard"
111+
- assertVisible:
112+
id: "omnibarTextInput"
113+
text: "reddit"
114+
- assertVisible:
115+
id: "newTabButton"
116+
- assertNotVisible:
117+
id: "autofillButton"

0 commit comments

Comments
 (0)