diff --git a/.github/workflows/upgrade-tests-pipeline.yml b/.github/workflows/upgrade-tests-pipeline.yml index 0b8f4dea9..201662732 100644 --- a/.github/workflows/upgrade-tests-pipeline.yml +++ b/.github/workflows/upgrade-tests-pipeline.yml @@ -337,7 +337,9 @@ jobs: - name: 'Tests upgrade' id: ui-tests-flagged working-directory: ./pmm-ui-tests/playwright-tests - run: npx playwright test --grep="${{ inputs.pre_upgrade_tests }}" --pass-with-no-tests + run: | + project="${{ contains(env.PMM_TEST_FLAG, 'portal') && 'Portal' || 'Chromium' }}" + npx playwright test --project=$project --grep="${{ inputs.pre_upgrade_tests }}" --pass-with-no-tests env: NODE_TLS_REJECT_UNAUTHORIZED: 0 @@ -360,7 +362,7 @@ jobs: - name: 'Upgrade pmm-server: ' if: ${{ inputs.upgrade_type == 'UI way' }} working-directory: ./pmm-ui-tests/playwright-tests - run: npx playwright test --grep="@pmm-upgrade" + run: npx playwright test --project=Chromium --grep="@pmm-upgrade" env: NODE_TLS_REJECT_UNAUTHORIZED: 0 @@ -426,7 +428,9 @@ jobs: - name: 'Tests upgrading Client and Server' working-directory: ./pmm-ui-tests/playwright-tests - run: npx playwright test --grep="${{ inputs.post_upgrade_tests }}" --pass-with-no-tests + run: | + project="${{ contains(env.PMM_TEST_FLAG, 'portal') && 'Portal' || 'Chromium' }}" + npx playwright test --project=$project --grep="${{ inputs.post_upgrade_tests }}" --pass-with-no-tests env: NODE_TLS_REJECT_UNAUTHORIZED: 0