From 8863ee61ac390a022c7252f5096405dd159a3810 Mon Sep 17 00:00:00 2001 From: Amanjeet Singh Date: Tue, 8 Oct 2024 12:24:42 +0530 Subject: [PATCH] chore: add e2e tests for optional --- e2e/workspaces/wikipedia/android-advanced-flow.yaml | 3 +++ e2e/workspaces/wikipedia/ios-advanced-flow.yaml | 4 +++- e2e/workspaces/wikipedia/subflows/onboarding-android.yaml | 3 +++ e2e/workspaces/wikipedia/subflows/onboarding-ios.yaml | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/e2e/workspaces/wikipedia/android-advanced-flow.yaml b/e2e/workspaces/wikipedia/android-advanced-flow.yaml index a6872200c3..ce7c335074 100644 --- a/e2e/workspaces/wikipedia/android-advanced-flow.yaml +++ b/e2e/workspaces/wikipedia/android-advanced-flow.yaml @@ -7,6 +7,9 @@ tags: - runFlow: subflows/onboarding-android.yaml - tapOn: id: "org.wikipedia:id/search_container" +- tapOn: + text: "Non existent view" + optional: true - runScript: scripts/getSearchQuery.js - inputText: ${output.result} - assertVisible: ${output.result} diff --git a/e2e/workspaces/wikipedia/ios-advanced-flow.yaml b/e2e/workspaces/wikipedia/ios-advanced-flow.yaml index e28ae40990..234557c9bf 100644 --- a/e2e/workspaces/wikipedia/ios-advanced-flow.yaml +++ b/e2e/workspaces/wikipedia/ios-advanced-flow.yaml @@ -13,7 +13,9 @@ tags: commands: - tapOn: text: "Continue without logging in" - +- tapOn: + text: "Non existent view" + optional: true - tapOn: Search Wikipedia - runScript: scripts/getSearchQuery.js - inputText: ${output.result} diff --git a/e2e/workspaces/wikipedia/subflows/onboarding-android.yaml b/e2e/workspaces/wikipedia/subflows/onboarding-android.yaml index 7aafc62f5d..e9ee46fc2d 100644 --- a/e2e/workspaces/wikipedia/subflows/onboarding-android.yaml +++ b/e2e/workspaces/wikipedia/subflows/onboarding-android.yaml @@ -2,6 +2,9 @@ appId: org.wikipedia --- - launchApp: clearState: true +- tapOn: + text: "Non existent view" + optional: true - tapOn: id: "org.wikipedia:id/fragment_onboarding_forward_button" - tapOn: diff --git a/e2e/workspaces/wikipedia/subflows/onboarding-ios.yaml b/e2e/workspaces/wikipedia/subflows/onboarding-ios.yaml index c878904e47..7f74121d97 100644 --- a/e2e/workspaces/wikipedia/subflows/onboarding-ios.yaml +++ b/e2e/workspaces/wikipedia/subflows/onboarding-ios.yaml @@ -10,3 +10,6 @@ appId: org.wikimedia.wikipedia duration: 400 - waitForAnimationToEnd - tapOn: Get started +- tapOn: + text: "Non existent view" + optional: true