Skip to content

Commit 9e5abd3

Browse files
authored
Update Maestro E2E tests Autofill (#6067)
Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1210251123773109?focus=true ### Description Update Maestro Autofill E2E workflows ### Steps to test this PR Should pass https://github.com/duckduckgo/Android/actions/runs/15025185850 ### UI changes | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)|
1 parent 79e9fc3 commit 9e5abd3

File tree

2 files changed

+128
-2
lines changed

2 files changed

+128
-2
lines changed

.maestro/autofill/2_autofill_add_search_update_delete_creds.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ tags:
7272

7373
- tapOn: "Navigate up"
7474

75-
- assertVisible:
76-
text: "Save and autofill passwords"
7775
- evalScript: ${output.addLogins.counter++}
7876

7977
- scrollUntilVisible:
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
appId: com.duckduckgo.mobile.android
2+
name: "Autofill: Autofill Settings Screen"
3+
tags:
4+
- autofillNoAuthTests
5+
---
6+
# Pre-requisite: on an autofill-eligible device
7+
- retry:
8+
maxRetries: 3
9+
commands:
10+
- launchApp:
11+
clearState: true
12+
- runFlow: ../shared/skip_all_onboarding.yaml
13+
14+
- tapOn:
15+
id: "com.duckduckgo.mobile.android:id/browserMenuImageView"
16+
- assertVisible: "Settings"
17+
- tapOn: "Settings"
18+
19+
- scrollUntilVisible:
20+
element:
21+
text: "Passwords.*"
22+
- assertVisible: "Passwords.*"
23+
- tapOn: "Passwords.*"
24+
25+
- assertVisible:
26+
id: secondaryText
27+
text: "0"
28+
29+
- assertVisible:
30+
text: "Ask to Save and Autofill"
31+
32+
- assertVisible:
33+
id: syncDesktopPasswordsOption
34+
35+
- tapOn:
36+
id: passwordsListItem
37+
38+
- assertVisible:
39+
text: "No passwords saved yet"
40+
- assertNotVisible:
41+
id: searchLogins
42+
43+
- runScript: steps/2_script.js
44+
45+
- repeat:
46+
while:
47+
true: ${output.addLogins.counter < output.addLogins.domains.length}
48+
commands:
49+
- tapOn:
50+
id: addLoginManually
51+
- assertVisible:
52+
text: Add Password
53+
- assertNotVisible:
54+
id: view_menu_save
55+
56+
- scrollUntilVisible:
57+
element:
58+
id: usernameEditText
59+
- tapOn:
60+
id: usernameEditText
61+
- inputText: "user"
62+
63+
- assertVisible:
64+
id: view_menu_save
65+
66+
- scrollUntilVisible:
67+
element:
68+
id: passwordEditText
69+
- tapOn:
70+
id: passwordEditText
71+
- inputText: "123"
72+
73+
- scrollUntilVisible:
74+
element:
75+
id: domainEditText
76+
- tapOn:
77+
id: domainEditText
78+
- inputText: "${output.addLogins.domains[output.addLogins.counter]}"
79+
80+
- scrollUntilVisible:
81+
element:
82+
id: notesEditText
83+
- tapOn:
84+
id: notesEditText
85+
- inputText: "a note"
86+
87+
- tapOn:
88+
id: view_menu_save
89+
retryTapIfNoChange: false
90+
91+
- scrollUntilVisible:
92+
element:
93+
text: "Last updated.*"
94+
- assertVisible: "Last updated.*"
95+
96+
- tapOn: "Navigate up"
97+
98+
- evalScript: ${output.addLogins.counter++}
99+
100+
- scrollUntilVisible:
101+
element:
102+
text: "#"
103+
- assertVisible:
104+
text: "#"
105+
106+
- scrollUntilVisible:
107+
element:
108+
text: "a.example.com"
109+
- assertVisible:
110+
text: "a.example.com"
111+
112+
- assertNotVisible:
113+
text: "https://a.example.com"
114+
115+
- scrollUntilVisible:
116+
element:
117+
text: "fill.dev"
118+
- assertVisible:
119+
text: "fill.dev"
120+
121+
- assertNotVisible:
122+
text: "fill.dev/example"
123+
124+
- tapOn: "Navigate up"
125+
126+
- assertVisible:
127+
id: secondaryText
128+
text: "3"

0 commit comments

Comments
 (0)