Skip to content

Commit

Permalink
Merge pull request #54 from boubkerbribri/fix/chrome-beta
Browse files Browse the repository at this point in the history
Install chrome-beta for testing PR tool
  • Loading branch information
Progi1984 authored Oct 9, 2023
2 parents 5d22697 + 0a01e04 commit 46872d8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pr_test_one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,16 @@ jobs:
working-directory: '${{ env.PS_DIR }}/tests/UI'
run: npm install

# Playwright must be installed all the time, we only install chromium since it's the only browser used
- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
if: ${{ env.BASE_BRANCH == '8.0.x' || env.BASE_BRANCH == '8.1.x' }}
run: npx playwright install chromium

- name: Install browsers
if: (env.BASE_BRANCH == 'develop')
working-directory: '${{ env.PS_DIR }}/tests/UI'
run: npx playwright install --with-deps
working-directory: ${{ env.PS_DIR }}/tests/UI
run: npx playwright install chrome-beta

- name: Run tests
id: runTests
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,15 @@ jobs:
done
shell: bash
# Playwright must be installed all the time, we only install chromium since it's the only browser used
- name: Install playwright
- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
run: |
npx playwright install chromium
if: ${{ inputs.base_branch == '8.0.x' || inputs.base_branch == '8.1.x' }}
run: npx playwright install chromium

- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
if: inputs.base_branch == 'develop'
run: npx playwright install chrome-beta

- name: Run sanity campaign
uses: ./custom_actions/.github/workflows/actions/run-tests
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test-with-prebuilt-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,15 @@ jobs:
run: |
npm ci
# Playwright must be installed all the time, we only install chromium since it's the only browser used
- name: Install playwright
- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
run: |
npx playwright install chromium
if: ${{ inputs.base_branch == '8.0.x' || inputs.base_branch == '8.1.x' }}
run: npx playwright install chromium

- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
if: inputs.base_branch == 'develop'
run: npx playwright install chrome-beta

- name: Run campaign ${{ inputs.test_command }} on prebuilt shop
uses: ./custom_actions/.github/workflows/actions/run-tests
Expand Down

0 comments on commit 46872d8

Please sign in to comment.