Skip to content

Commit 05398d5

Browse files
authored
Update Maestro autofill tests to cater for promo showing (#6592)
Task/Issue URL: https://app.asana.com/1/137249556945/project/1211013100415552/task/1211065390493169?focus=true ### Description Update maestro e2e autofills tests to handle in-browser password import dialog showing up ### Steps to test this PR - [x] QA optional / [tested on CI](https://app.maestro.dev/project/proj_01htg54rdtfwx8rgbzv03cxkpf/maestro-test/app/app_01hkqhj1thevwtn9ym8a2ctn2r/upload/mupload_01k2mhe362ed4b6y0ydftyp6h7?sort=name&status=all) already - [ ] [optional] If you want to run locally, you can do `maestro test .maestro --include-tags autofillNoAuthTests,autofillPasswordGeneration,autofillBackfillingUsername` after building an APK with `-Pautofill-disable-auth-requirement -Pforce-default-variant -Pskip-onboarding` Co-authored-by: Craig Russell <[email protected]>
1 parent b611f49 commit 05398d5

9 files changed

+44
-0
lines changed

.maestro/autofill/3_autofill_prompted_to_save_creds_on_form.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ tags:
2323

2424
- tapOn:
2525
id: "username"
26+
27+
- runFlow: steps/decline_in_browser_password_import.promo.yaml
28+
29+
- tapOn:
30+
id: "username"
31+
2632
- inputText: "user"
2733
- tapOn:
2834
id: "password"

.maestro/autofill/backfillingUsername/multi_step_login_username_backfilled.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ tags:
2222

2323
# simulate a partial login form by first submitting just the username
2424
- tapOn: "Username"
25+
- runFlow: ../steps/decline_in_browser_password_import.promo.yaml
26+
- tapOn: "Username"
27+
2528
- inputText: "usernameFromBackfill"
2629
- pressKey: Back
2730

.maestro/autofill/backfillingUsername/multi_step_login_username_not_backfilled_if_provided_explicitly.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ tags:
2222

2323
# simulate a partial login form by first submitting just the username
2424
- tapOn: "Username"
25+
- runFlow: ../steps/decline_in_browser_password_import.promo.yaml
26+
- tapOn: "Username"
27+
2528
- inputText: "usernameFromBackfill"
2629
- pressKey: Back
2730

.maestro/autofill/backfillingUsername/multi_step_registration_username_backfilled_password_autogenerated.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ tags:
2222

2323
# simulate a partial form submission by first submitting just the username
2424
- tapOn: "Username"
25+
- runFlow: ../steps/decline_in_browser_password_import.promo.yaml
26+
- tapOn: "Username"
27+
2528
- inputText: "usernameFromBackfill"
2629
- pressKey: Back
2730

.maestro/autofill/backfillingUsername/multi_step_registration_username_backfilled_password_manually_entered.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ tags:
2222

2323
# simulate a partial form submission by first submitting just the username
2424
- tapOn: "Username"
25+
- runFlow: ../steps/decline_in_browser_password_import.promo.yaml
26+
- tapOn: "Username"
2527
- inputText: "usernameFromBackfill"
28+
- tapOn: "Username"
29+
2630
- pressKey: Back
2731

2832
- tapOn:

.maestro/autofill/backfillingUsername/password_reset_flow_autogenerated_password.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ tags:
2222

2323
# simulate a partial login form by first submitting just the username
2424
- tapOn: "Username"
25+
- runFlow: ../steps/decline_in_browser_password_import.promo.yaml
26+
- tapOn: "Username"
27+
2528
- inputText: "usernameFromBackfill"
2629
- pressKey: Back
2730

.maestro/autofill/backfillingUsername/password_reset_flow_for_existing_credential_generated_password.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ tags:
2222

2323
# simulate a partial login form by first submitting just the username
2424
- tapOn: "Username"
25+
- runFlow: ../steps/decline_in_browser_password_import.promo.yaml
26+
- tapOn: "Username"
27+
2528
- inputText: "existingUser"
2629
- pressKey: Back
2730

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
appId: com.duckduckgo.mobile.android
2+
---
3+
4+
# dismiss any offers to autofill from existing credentials
5+
- runFlow:
6+
when:
7+
visible: "Bring your passwords from Google to DuckDuckGo"
8+
commands:
9+
- tapOn: "Don't Ask Again"

.maestro/autofill/steps/search_logins.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ name: "Autofill: Search credentials"
1616
commands:
1717
- tapOn: "No thanks"
1818

19+
- runFlow:
20+
when:
21+
visible: "Bring your passwords from
22+
23+
Google to DuckDuckGo"
24+
commands:
25+
- tapOn:
26+
id: "com.duckduckgo.mobile.android:id/close"
27+
28+
1929
- tapOn:
2030
id: searchLogins
2131

0 commit comments

Comments
 (0)