Skip to content

Commit

Permalink
PMM-7 added project to tests call (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Yarosh authored Sep 11, 2023
1 parent 694b73f commit e6f2c9e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/upgrade-tests-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ jobs:
- name: 'Tests <BEFORE> 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

Expand All @@ -360,7 +362,7 @@ jobs:
- name: 'Upgrade pmm-server: <UI way>'
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

Expand Down Expand Up @@ -426,7 +428,9 @@ jobs:
- name: 'Tests <AFTER> 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

Expand Down

0 comments on commit e6f2c9e

Please sign in to comment.