From 5cb09ff6776b4dc3dd4b30b48918c50003588c60 Mon Sep 17 00:00:00 2001 From: Axel Niklasson Date: Thu, 10 Oct 2024 15:41:23 +0200 Subject: [PATCH] chore: update e2e tests to relaunch the app with clear state (#2077) update e2e tests to relaunch the app with clear state --- e2e/workspaces/wikipedia/android-advanced-flow.yaml | 1 + e2e/workspaces/wikipedia/ios-advanced-flow.yaml | 1 + .../wikipedia/subflows/launch-clearstate-android.yaml | 6 ++++++ .../wikipedia/subflows/launch-clearstate-ios.yaml | 6 ++++++ 4 files changed, 14 insertions(+) create mode 100644 e2e/workspaces/wikipedia/subflows/launch-clearstate-android.yaml create mode 100644 e2e/workspaces/wikipedia/subflows/launch-clearstate-ios.yaml diff --git a/e2e/workspaces/wikipedia/android-advanced-flow.yaml b/e2e/workspaces/wikipedia/android-advanced-flow.yaml index 7357f29c48..a6872200c3 100644 --- a/e2e/workspaces/wikipedia/android-advanced-flow.yaml +++ b/e2e/workspaces/wikipedia/android-advanced-flow.yaml @@ -10,3 +10,4 @@ tags: - runScript: scripts/getSearchQuery.js - inputText: ${output.result} - assertVisible: ${output.result} +- runFlow: subflows/launch-clearstate-android.yaml diff --git a/e2e/workspaces/wikipedia/ios-advanced-flow.yaml b/e2e/workspaces/wikipedia/ios-advanced-flow.yaml index 591f5c4e57..e28ae40990 100644 --- a/e2e/workspaces/wikipedia/ios-advanced-flow.yaml +++ b/e2e/workspaces/wikipedia/ios-advanced-flow.yaml @@ -20,3 +20,4 @@ tags: - eraseText - inputText: qwerty - assertVisible: ${output.result} +- runFlow: subflows/launch-clearstate-ios.yaml diff --git a/e2e/workspaces/wikipedia/subflows/launch-clearstate-android.yaml b/e2e/workspaces/wikipedia/subflows/launch-clearstate-android.yaml new file mode 100644 index 0000000000..b9461b62fe --- /dev/null +++ b/e2e/workspaces/wikipedia/subflows/launch-clearstate-android.yaml @@ -0,0 +1,6 @@ +appId: org.wikipedia +--- +- launchApp: + clearState: true +- assertVisible: "Continue" +- assertVisible: "Skip" \ No newline at end of file diff --git a/e2e/workspaces/wikipedia/subflows/launch-clearstate-ios.yaml b/e2e/workspaces/wikipedia/subflows/launch-clearstate-ios.yaml new file mode 100644 index 0000000000..68c8f0ffd2 --- /dev/null +++ b/e2e/workspaces/wikipedia/subflows/launch-clearstate-ios.yaml @@ -0,0 +1,6 @@ +appId: org.wikimedia.wikipedia +--- +- launchApp: + clearState: true +- assertVisible: "Next" +- assertVisible: "Skip" \ No newline at end of file