From c07184db86b659bf2c961eb575cdeb4986bc7575 Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Mon, 30 Dec 2024 12:07:00 +0000 Subject: [PATCH] Add e2e test for retry command (#2214) * Add e2e test for retry command * Alphebetise existing and annotate missing e2e tests --- e2e/workspaces/demo_app/commands/retry.yaml | 13 +++++ e2e/workspaces/demo_app/commands_tour.yaml | 58 +++++++++++++++++---- 2 files changed, 60 insertions(+), 11 deletions(-) create mode 100644 e2e/workspaces/demo_app/commands/retry.yaml diff --git a/e2e/workspaces/demo_app/commands/retry.yaml b/e2e/workspaces/demo_app/commands/retry.yaml new file mode 100644 index 0000000000..04c9192096 --- /dev/null +++ b/e2e/workspaces/demo_app/commands/retry.yaml @@ -0,0 +1,13 @@ +appId: com.example.example +--- +- launchApp + +- retry: + maxRetries: 3 + commands: + - tapOn: + id: 'fabAddIcon' + retryTapIfNoChange: false + - waitForAnimationToEnd + - assertVisible: '2' +- assertVisible: 'Flutter Demo Home Page' diff --git a/e2e/workspaces/demo_app/commands_tour.yaml b/e2e/workspaces/demo_app/commands_tour.yaml index 80b3ea1990..70add38571 100644 --- a/e2e/workspaces/demo_app/commands_tour.yaml +++ b/e2e/workspaces/demo_app/commands_tour.yaml @@ -44,11 +44,7 @@ env: file: commands/copyTextFrom.yaml label: copyTextFrom -- runFlow: - when: - true: ${RUN_ONLY == "" || RUN_ONLY == "evalScript"} - file: commands/evalScript.yaml - label: evalScript +# TODO: doubleTapOn - runFlow: when: @@ -56,6 +52,12 @@ env: file: commands/eraseText.yaml label: eraseText +- runFlow: + when: + true: ${RUN_ONLY == "" || RUN_ONLY == "evalScript"} + file: commands/evalScript.yaml + label: evalScript + - runFlow: when: true: ${RUN_ONLY == "" || RUN_ONLY == "extendedWaitUntil"} @@ -111,13 +113,9 @@ env: file: commands/launchApp.yaml label: launchApp -# TODO: openLink (probably after #2058) +# TODO: longPressOn -- runFlow: - when: - true: ${RUN_ONLY == "" || RUN_ONLY == "pressKey"} - file: commands/pressKey.yaml - label: pressKey +# TODO: openLink (probably after #2058) - runFlow: when: @@ -125,12 +123,24 @@ env: file: commands/pasteText.yaml label: pasteText +- runFlow: + when: + true: ${RUN_ONLY == "" || RUN_ONLY == "pressKey"} + file: commands/pressKey.yaml + label: pressKey + - runFlow: when: true: ${RUN_ONLY == "" || RUN_ONLY == "repeat"} file: commands/repeat.yaml label: repeat +- runFlow: + when: + true: ${RUN_ONLY == "" || RUN_ONLY == "retry"} + file: commands/retry.yaml + label: retry + - runFlow: when: true: ${RUN_ONLY == "" || RUN_ONLY == "runFlow"} @@ -142,3 +152,29 @@ env: true: ${RUN_ONLY == "" || RUN_ONLY == "runScript"} file: commands/runScript.yaml label: runScript + +# TODO: scroll + +# TODO: scrollUntilVisible + +# TODO: setAirplaneMode + +# TODO: setLocation + +# TODO: startRecording + +# TODO: stopApp + +# TODO: stopRecording + +# TODO: swipe + +# TODO: takeScreenshot + +# TODO: tapOn + +# TODO: toggleAirplaneMode + +# TODO: travel + +# TODO: waitForAnimationToEnd