From 0430f38cb90ef93085f13defb660be68f1cf7cad Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Tue, 19 Dec 2023 10:08:03 +0100 Subject: [PATCH 1/3] add test 5 and fix test 4 --- .maestro/shared/add_login_from_settings.yaml | 4 +- .maestro/shared/remove_local_logins.yaml | 7 ++-- .maestro/shared/sync_verify_logins.yaml | 13 +++---- .maestro/sync_tests/05_delete_account.yaml | 39 +++++++++++++++++++ .../sync_tests/add_login_from_settings.yaml | 15 ------- 5 files changed, 50 insertions(+), 28 deletions(-) create mode 100644 .maestro/sync_tests/05_delete_account.yaml delete mode 100644 .maestro/sync_tests/add_login_from_settings.yaml diff --git a/.maestro/shared/add_login_from_settings.yaml b/.maestro/shared/add_login_from_settings.yaml index 199dc4f83f..1f34c6df2b 100644 --- a/.maestro/shared/add_login_from_settings.yaml +++ b/.maestro/shared/add_login_from_settings.yaml @@ -1,7 +1,7 @@ appId: com.duckduckgo.mobile.ios --- -- tapOn: Logins +- tapOn: Passwords - tapOn: Add 24 - tapOn: Title - inputText: My Personal Website @@ -10,6 +10,6 @@ appId: com.duckduckgo.mobile.ios - tapOn: example.com - inputText: mypersonalwebsite.com - tapOn: Save -- tapOn: Logins +- tapOn: Passwords - tapOn: Settings - tapOn: Done \ No newline at end of file diff --git a/.maestro/shared/remove_local_logins.yaml b/.maestro/shared/remove_local_logins.yaml index fc62c1e26d..e830ee3ec3 100644 --- a/.maestro/shared/remove_local_logins.yaml +++ b/.maestro/shared/remove_local_logins.yaml @@ -2,13 +2,12 @@ appId: com.duckduckgo.mobile.ios --- - tapOn: Settings -- tapOn: Logins -- assertVisible: Unlock device to access saved Logins +- tapOn: Passwords - tapOn: Passcode field - inputText: "0000" - pressKey: Enter - tapOn: My Personal Website -- tapOn: Delete Login -- tapOn: Delete Login +- tapOn: Delete Password +- tapOn: Delete Password - tapOn: Settings - tapOn: Done \ No newline at end of file diff --git a/.maestro/shared/sync_verify_logins.yaml b/.maestro/shared/sync_verify_logins.yaml index aed87359c8..1fb1c8b334 100644 --- a/.maestro/shared/sync_verify_logins.yaml +++ b/.maestro/shared/sync_verify_logins.yaml @@ -1,8 +1,7 @@ appId: com.duckduckgo.mobile.ios --- -- tapOn: Logins -- assertVisible: Unlock device to access saved Logins +- tapOn: Passwords - tapOn: Passcode field - inputText: "0000" - pressKey: Enter @@ -10,20 +9,20 @@ appId: com.duckduckgo.mobile.ios - tapOn: Dax Login - assertVisible: daxthetest - assertVisible: duckduckgo.com -- tapOn: Logins +- tapOn: Passwords - assertVisible: Github - tapOn: Github - assertVisible: githubusername - assertVisible: github.com -- tapOn: Logins +- tapOn: Passwords - assertVisible: StackOverflow - tapOn: StackOverflow - assertVisible: stacker - assertVisible: stackoverflow.com -- tapOn: Logins +- tapOn: Passwords - assertVisible: My Personal Website - tapOn: My Personal Website - assertVisible: me@mypersonalwebsite.com - assertVisible: mypersonalwebsite.com -- tapOn: Logins -- tapOn: Settings \ No newline at end of file +- tapOn: Passwords +- tapOn: Settings diff --git a/.maestro/sync_tests/05_delete_account.yaml b/.maestro/sync_tests/05_delete_account.yaml new file mode 100644 index 0000000000..76947f05fd --- /dev/null +++ b/.maestro/sync_tests/05_delete_account.yaml @@ -0,0 +1,39 @@ +appId: com.duckduckgo.mobile.ios +tags: + - sync + +--- + +# Clear and launch +- clearState +- launchApp + +# Run onboarding Flow +- runFlow: + when: + visible: + text: "Let’s Do It!" + index: 0 + file: ../shared/onboarding.yaml + +# Set Internal User +- tapOn: Settings +- runFlow: + file: ../shared/set_internal_user_from_settings.yaml + +# Create account +- runFlow: + file: ../shared/sync_create.yaml + +# Remove account +- runFlow: + file: ../shared/sync_delete.yaml + +# Try to login and check for error +- assertVisible: Begin Syncing +- tapOn: Sync with Another Device +- assertVisible: Scan QR Code +- tapOn: Manually Enter Code +- tapOn: Paste +- assertVisible: Sync Error +- tapOn: OK diff --git a/.maestro/sync_tests/add_login_from_settings.yaml b/.maestro/sync_tests/add_login_from_settings.yaml deleted file mode 100644 index 199dc4f83f..0000000000 --- a/.maestro/sync_tests/add_login_from_settings.yaml +++ /dev/null @@ -1,15 +0,0 @@ -appId: com.duckduckgo.mobile.ios ---- - -- tapOn: Logins -- tapOn: Add 24 -- tapOn: Title -- inputText: My Personal Website -- tapOn: username@example.com -- inputText: me@mypersonalwebsite.com -- tapOn: example.com -- inputText: mypersonalwebsite.com -- tapOn: Save -- tapOn: Logins -- tapOn: Settings -- tapOn: Done \ No newline at end of file From 0238a386b7ab56e9f619d3a8a2ef6637a6462de2 Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Wed, 20 Dec 2023 12:37:40 +0100 Subject: [PATCH 2/3] test on CI --- .github/workflows/sync-end-to-end.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sync-end-to-end.yml b/.github/workflows/sync-end-to-end.yml index e524cdffdf..86ee3d0907 100644 --- a/.github/workflows/sync-end-to-end.yml +++ b/.github/workflows/sync-end-to-end.yml @@ -1,6 +1,7 @@ name: Sync-End-to-End tests on: + push: schedule: - cron: '0 5 * * *' # run at 5 AM UTC From 58c1e66948589f8cf5065381bee5717e274d2e9d Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Wed, 20 Dec 2023 13:14:32 +0100 Subject: [PATCH 3/3] remove run on push --- .github/workflows/sync-end-to-end.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sync-end-to-end.yml b/.github/workflows/sync-end-to-end.yml index 86ee3d0907..e524cdffdf 100644 --- a/.github/workflows/sync-end-to-end.yml +++ b/.github/workflows/sync-end-to-end.yml @@ -1,7 +1,6 @@ name: Sync-End-to-End tests on: - push: schedule: - cron: '0 5 * * *' # run at 5 AM UTC