From 856d5636ccd76cc2bd0bc068f3410f759ac1833c Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 08:08:53 +0200 Subject: [PATCH 01/15] test(extension): try 1 --- .github/workflows/e2e-tests-linux-split.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 3464295cf6..639358406a 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -22,7 +22,7 @@ on: - mainnet runner: type: choice - required: true + required: false default: 'self-hosted' description: runner to use options: @@ -39,11 +39,12 @@ env: DISPLAY: ':99.0' NODE_OPTIONS: --max-old-space-size=16384 BRANCH: ${{ github.ref_name }} + RUNNER: ${{ github.event.inputs.runner || 'self-hosted' }} jobs: prereq: - runs-on: "${{ inputs.runner }}" - if: ${{ inputs.runner == 'self-hosted' }} + runs-on: "${{ env.RUNNER }}" + if: ${{ env.RUNNER == 'self-hosted' }} steps: - name: Deleting chrome tmp files id: clean-chrome-tmp-files @@ -52,7 +53,7 @@ jobs: eval "$runCommand"; tests-run-part-1: - runs-on: "${{ inputs.runner }}" + runs-on: "${{ env.RUNNER }}" if: always() needs: prereq steps: @@ -88,7 +89,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-2: - runs-on: "${{ inputs.runner }}" + runs-on: "${{ env.RUNNER }}" if: always() needs: prereq steps: @@ -124,7 +125,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-3: - runs-on: "${{ inputs.runner }}" + runs-on: "${{ env.RUNNER }}" if: always() needs: prereq steps: @@ -160,7 +161,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-4: - runs-on: "${{ inputs.runner }}" + runs-on: "${{ env.RUNNER }}" if: always() needs: prereq steps: @@ -197,7 +198,7 @@ jobs: results-processing: needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4] - runs-on: "${{ inputs.runner }}" + runs-on: "${{ env.RUNNER }}" if: always() steps: - name: Download reports from part 1 From cf1a2087484f734cf9e4dd1e361452be6b1be2db Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 08:09:31 +0200 Subject: [PATCH 02/15] test(extension): try 2 --- .github/workflows/e2e-tests-linux-split.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 639358406a..60678e6125 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -20,15 +20,15 @@ on: options: - preprod - mainnet - runner: - type: choice - required: false - default: 'self-hosted' - description: runner to use - options: - - self-hosted - - ubuntu-22.04 - - ubuntu-20.04 +# runner: +# type: choice +# required: false +# default: 'self-hosted' +# description: runner to use +# options: +# - self-hosted +# - ubuntu-22.04 +# - ubuntu-20.04 run-name: "E2E | os: Linux | browser: ${{ github.event.inputs.browser || 'chrome' }} | network: ${{ github.event.inputs.network }} | #${{ github.run_number }}" From 74dcdcf75c7556fbdf92592c583286f31170380d Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 08:11:13 +0200 Subject: [PATCH 03/15] test(extension): try 3 --- .github/workflows/e2e-tests-linux-split.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 60678e6125..e2f897230a 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -43,7 +43,7 @@ env: jobs: prereq: - runs-on: "${{ env.RUNNER }}" + runs-on: ${{ env.RUNNER }} if: ${{ env.RUNNER == 'self-hosted' }} steps: - name: Deleting chrome tmp files @@ -53,7 +53,7 @@ jobs: eval "$runCommand"; tests-run-part-1: - runs-on: "${{ env.RUNNER }}" + runs-on: ${{ env.RUNNER }} if: always() needs: prereq steps: @@ -89,7 +89,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-2: - runs-on: "${{ env.RUNNER }}" + runs-on: ${{ env.RUNNER }} if: always() needs: prereq steps: @@ -125,7 +125,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-3: - runs-on: "${{ env.RUNNER }}" + runs-on: ${{ env.RUNNER }} if: always() needs: prereq steps: @@ -161,7 +161,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-4: - runs-on: "${{ env.RUNNER }}" + runs-on: ${{ env.RUNNER }} if: always() needs: prereq steps: @@ -198,7 +198,7 @@ jobs: results-processing: needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4] - runs-on: "${{ env.RUNNER }}" + runs-on: ${{ env.RUNNER }} if: always() steps: - name: Download reports from part 1 From 70f21d5bfbccc0f40614211cd0a35805ab8a5147 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 08:21:31 +0200 Subject: [PATCH 04/15] test(extension): try 4 --- .github/workflows/e2e-tests-linux-split.yml | 36 +++++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index e2f897230a..e0ca97a5c2 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -39,21 +39,23 @@ env: DISPLAY: ':99.0' NODE_OPTIONS: --max-old-space-size=16384 BRANCH: ${{ github.ref_name }} - RUNNER: ${{ github.event.inputs.runner || 'self-hosted' }} +# RUNNER: ${{ github.event.inputs.runner || 'self-hosted' }} jobs: prereq: - runs-on: ${{ env.RUNNER }} - if: ${{ env.RUNNER == 'self-hosted' }} - steps: - - name: Deleting chrome tmp files - id: clean-chrome-tmp-files - run: | - runCommand="rm -rf /tmp/.org.chromium.*" - eval "$runCommand"; + runs-on: ubuntu-latest +# if: ${{ env.RUNNER == 'self-hosted' }} +# steps: +# - name: Deleting chrome tmp files +# id: clean-chrome-tmp-files +# run: | +# runCommand="rm -rf /tmp/.org.chromium.*" +# eval "$runCommand"; + outputs: + runner: ${{ github.event.inputs.runner || 'self-hosted' }} tests-run-part-1: - runs-on: ${{ env.RUNNER }} + runs-on: ${{ needs.prereq.outputs.runner }} if: always() needs: prereq steps: @@ -89,7 +91,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-2: - runs-on: ${{ env.RUNNER }} + runs-on: ${{ needs.prereq.outputs.runner }} if: always() needs: prereq steps: @@ -125,7 +127,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-3: - runs-on: ${{ env.RUNNER }} + runs-on: ${{ needs.prereq.outputs.runner }} if: always() needs: prereq steps: @@ -161,7 +163,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results tests-run-part-4: - runs-on: ${{ env.RUNNER }} + runs-on: ${{ needs.prereq.outputs.runner }} if: always() needs: prereq steps: @@ -198,7 +200,7 @@ jobs: results-processing: needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4] - runs-on: ${{ env.RUNNER }} + runs-on: ${{ needs.prereq.outputs.runner }} if: always() steps: - name: Download reports from part 1 @@ -274,3 +276,9 @@ jobs: SLACK_TITLE: 'Test automation results :rocket:' SLACK_USERNAME: lace-qa-bot SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + - name: Deleting chrome tmp files + id: clean-chrome-tmp-files + if: ${{ needs.prereq.outputs.runner == 'self-hosted' }} + run: | + runCommand="rm -rf /tmp/.org.chromium.*" + eval "$runCommand"; From a921532000ded3bb41f2e2ea58ead3e594d51816 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 08:22:45 +0200 Subject: [PATCH 05/15] test(extension): try 5 --- .github/workflows/e2e-tests-linux-split.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index e0ca97a5c2..65d2d2aeb0 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -51,6 +51,10 @@ jobs: # run: | # runCommand="rm -rf /tmp/.org.chromium.*" # eval "$runCommand"; + steps: + - name: Provision step # at least one step is required in a job + run: | + echo "Provisioning ${{ github.event.inputs.runner }}" outputs: runner: ${{ github.event.inputs.runner || 'self-hosted' }} From 4291eb1f1d992d6de46fc79059b3169240d4ca14 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 09:25:31 +0200 Subject: [PATCH 06/15] test(extension): cleanup --- .github/workflows/e2e-tests-linux-split.yml | 32 ++++++++------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 65d2d2aeb0..be47d791b2 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -20,15 +20,15 @@ on: options: - preprod - mainnet -# runner: -# type: choice -# required: false -# default: 'self-hosted' -# description: runner to use -# options: -# - self-hosted -# - ubuntu-22.04 -# - ubuntu-20.04 + runner: + type: choice + required: true + default: 'self-hosted' + description: runner to use + options: + - self-hosted + - ubuntu-22.04 + - ubuntu-20.04 run-name: "E2E | os: Linux | browser: ${{ github.event.inputs.browser || 'chrome' }} | network: ${{ github.event.inputs.network }} | #${{ github.run_number }}" @@ -39,20 +39,12 @@ env: DISPLAY: ':99.0' NODE_OPTIONS: --max-old-space-size=16384 BRANCH: ${{ github.ref_name }} -# RUNNER: ${{ github.event.inputs.runner || 'self-hosted' }} jobs: prereq: runs-on: ubuntu-latest -# if: ${{ env.RUNNER == 'self-hosted' }} -# steps: -# - name: Deleting chrome tmp files -# id: clean-chrome-tmp-files -# run: | -# runCommand="rm -rf /tmp/.org.chromium.*" -# eval "$runCommand"; steps: - - name: Provision step # at least one step is required in a job + - name: Provision step run: | echo "Provisioning ${{ github.event.inputs.runner }}" outputs: @@ -204,7 +196,7 @@ jobs: results-processing: needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4] - runs-on: ${{ needs.prereq.outputs.runner }} + runs-on: 'self-hosted' if: always() steps: - name: Download reports from part 1 @@ -276,7 +268,7 @@ jobs: env: SLACK_COLOR: "${{ contains(needs.*.result, 'failure') && 'failure' || 'good' }}" SLACK_ICON_EMOJI: ':lace:' - SLACK_MESSAGE: 'https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux' + SLACK_MESSAGE: 'https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux | runner: ${{ needs.prereq.outputs.runner }}' SLACK_TITLE: 'Test automation results :rocket:' SLACK_USERNAME: lace-qa-bot SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} From 12f7fa91139c047c337b9ac2282e9a9ec0df75e5 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 09:38:40 +0200 Subject: [PATCH 07/15] test(extension): cleanup 2 --- .github/workflows/e2e-tests-linux-split.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index be47d791b2..3be3481f97 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -48,7 +48,7 @@ jobs: run: | echo "Provisioning ${{ github.event.inputs.runner }}" outputs: - runner: ${{ github.event.inputs.runner || 'self-hosted' }} + runner: ${{ github.event.inputs.runner || 'ubuntu-22.04' }} tests-run-part-1: runs-on: ${{ needs.prereq.outputs.runner }} @@ -195,8 +195,8 @@ jobs: path: ./packages/e2e-tests/reports/allure/results results-processing: + runs-on: ${{ needs.prereq.outputs.runner }} needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4] - runs-on: 'self-hosted' if: always() steps: - name: Download reports from part 1 From 78fcba74f81591ae4107a98526330cfa47ae9783 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 09:39:13 +0200 Subject: [PATCH 08/15] test(extension): cleanup 2 --- .github/workflows/e2e-tests-linux-split.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 3be3481f97..bf06e0f013 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -20,15 +20,15 @@ on: options: - preprod - mainnet - runner: - type: choice - required: true - default: 'self-hosted' - description: runner to use - options: - - self-hosted - - ubuntu-22.04 - - ubuntu-20.04 +# runner: +# type: choice +# required: true +# default: 'self-hosted' +# description: runner to use +# options: +# - self-hosted +# - ubuntu-22.04 +# - ubuntu-20.04 run-name: "E2E | os: Linux | browser: ${{ github.event.inputs.browser || 'chrome' }} | network: ${{ github.event.inputs.network }} | #${{ github.run_number }}" From a6356a02610367b72ee6cd91d25332fbc0be5b26 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 09:43:02 +0200 Subject: [PATCH 09/15] test(extension): defaul;t runner value fix try --- .github/workflows/e2e-tests-linux-split.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index bf06e0f013..72dc671968 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -77,7 +77,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch1 --cucumberOpts.tags='@Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -113,7 +113,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch2 --cucumberOpts.tags='@Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -149,7 +149,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch3 --cucumberOpts.tags='@Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -185,7 +185,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() From 2ea114027198e411409d1d1f24dc6f2b1215ad25 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 09:57:20 +0200 Subject: [PATCH 10/15] test(extension): default runner value fix try 2 --- .github/workflows/e2e-tests-linux-split.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 72dc671968..ef175d0b53 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -77,7 +77,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -113,7 +113,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -149,7 +149,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -185,7 +185,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -195,7 +195,7 @@ jobs: path: ./packages/e2e-tests/reports/allure/results results-processing: - runs-on: ${{ needs.prereq.outputs.runner }} + runs-on: "${{ needs.prereq.outputs.runner }}" needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4] if: always() steps: From 14ba8937e0fb6ff3c8afcd09a4e315ba9bcf8b56 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 09:58:13 +0200 Subject: [PATCH 11/15] test(extension): default runner value fix try 3 --- .github/workflows/e2e-tests-linux-split.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index ef175d0b53..3626601a41 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -195,8 +195,8 @@ jobs: path: ./packages/e2e-tests/reports/allure/results results-processing: - runs-on: "${{ needs.prereq.outputs.runner }}" needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4] + runs-on: 'self-hosted' if: always() steps: - name: Download reports from part 1 From 7fbee4aa5bccb4c38842d197f9390ebfc0678f6b Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 10:54:40 +0200 Subject: [PATCH 12/15] test(extension): cleanup --- .github/workflows/e2e-tests-linux-split.yml | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 3626601a41..9bd001e1d2 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -20,15 +20,15 @@ on: options: - preprod - mainnet -# runner: -# type: choice -# required: true -# default: 'self-hosted' -# description: runner to use -# options: -# - self-hosted -# - ubuntu-22.04 -# - ubuntu-20.04 + runner: + type: choice + required: true + default: 'self-hosted' + description: runner to use + options: + - self-hosted + - ubuntu-22.04 + - ubuntu-20.04 run-name: "E2E | os: Linux | browser: ${{ github.event.inputs.browser || 'chrome' }} | network: ${{ github.event.inputs.network }} | #${{ github.run_number }}" @@ -77,7 +77,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch1 --cucumberOpts.tags='@Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -113,7 +113,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch2 --cucumberOpts.tags='@Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -149,7 +149,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch3 --cucumberOpts.tags='@Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() @@ -185,7 +185,7 @@ jobs: TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} ENV: ${{ env.NETWORK }} run: | - runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Accounts-Popup and @Testnet and not @Pending'" + runCommand="yarn wdio run wdio.conf.${BROWSER}.ts --suite batch4 --cucumberOpts.tags='@Testnet and not @Pending'" eval "$runCommand"; - name: Save tests results if: always() From 4c500e4c23cf51883ccdc2ac38476b652e29263e Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 10:56:35 +0200 Subject: [PATCH 13/15] test(extension): cleanup --- .github/workflows/e2e-tests-linux-split.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 9bd001e1d2..71ca5f2683 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -236,6 +236,7 @@ jobs: env=${NETWORK} browser=${BROWSER} platform=Linux + runner=${{ needs.prereq.outputs.runner }} " > environment.properties - name: Publish allure report to S3 uses: andrcuns/allure-publish-action@v2.6.0 From bac3d7170894a872982bd383e167e3372f4418bd Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 10:59:59 +0200 Subject: [PATCH 14/15] test(extension): cleanup 2 --- .github/workflows/e2e-tests-linux-split.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 71ca5f2683..79d1da6680 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -236,7 +236,6 @@ jobs: env=${NETWORK} browser=${BROWSER} platform=Linux - runner=${{ needs.prereq.outputs.runner }} " > environment.properties - name: Publish allure report to S3 uses: andrcuns/allure-publish-action@v2.6.0 @@ -269,7 +268,7 @@ jobs: env: SLACK_COLOR: "${{ contains(needs.*.result, 'failure') && 'failure' || 'good' }}" SLACK_ICON_EMOJI: ':lace:' - SLACK_MESSAGE: 'https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux | runner: ${{ needs.prereq.outputs.runner }}' + SLACK_MESSAGE: 'https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux' SLACK_TITLE: 'Test automation results :rocket:' SLACK_USERNAME: lace-qa-bot SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} From 213e6d83b5d0bc96626a1c16b73a7652f9f98a45 Mon Sep 17 00:00:00 2001 From: januszjanus Date: Mon, 24 Jun 2024 13:44:23 +0200 Subject: [PATCH 15/15] test(extension): blocking lw-2559 test due to a nug --- packages/e2e-tests/src/features/TransactionsExtended.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/e2e-tests/src/features/TransactionsExtended.feature b/packages/e2e-tests/src/features/TransactionsExtended.feature index c5f09582d3..e38b569739 100644 --- a/packages/e2e-tests/src/features/TransactionsExtended.feature +++ b/packages/e2e-tests/src/features/TransactionsExtended.feature @@ -41,7 +41,7 @@ Feature: Transactions - Extended view When I navigate to Transactions extended page Then all transactions have icon, type of transaction, amount of tokens, value, and value in FIAT - @LW-2559 @Smoke @Testnet @Mainnet + @LW-2559 @Smoke @Testnet @Mainnet @Pending @issue=@LW-10788 Scenario: Extended View - Transactions details - Folded Given I am on the Transactions section - Extended view When click on a transaction