Skip to content

Commit

Permalink
NEXT-37263 - Run playwright with artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jozsefdamokos committed Jan 13, 2025
1 parent 911ee4d commit 30b8e8f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,18 @@ jobs:
run: |
npm ci
npx playwright install --with-deps
- name: Run Playwright
- name: Run Playwright with reporting
working-directory: custom/plugins/${{ github.event.repository.name }}/tests/acceptance
run: |
npx pwc --project-id ${{ secrets.CURRENTS_PROJECT_ID }} --key ${{ secrets.CURRENTS_RECORD_KEY }} --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ matrix.PLATFORM_BRANCH }}-${{ github.run_attempt }}
npx pwc --project-id ${{ secrets.CURRENTS_PROJECT_ID }} --key ${{ secrets.CURRENTS_RECORD_KEY }} --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ matrix.PLATFORM_BRANCH }}-${{ github.run_attempt }} -- --trace=on
- name: Run Playwright
working-directory: custom/plugins/${{ github.event.repository.name }}/tests/acceptance
run: npx playwright test --reporter=${{ github.event.act && 'line' || 'github' }} --trace=on-first-retry
- uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-${{ github.event.repository.name }}-${{ github.sha }}
path:
custom/plugins/${{ github.event.repository.name }}/tests/acceptance/test-results/
custom/plugins/${{ github.event.repository.name }}/tests/acceptance/playwright-report/
retention-days: 3
2 changes: 1 addition & 1 deletion tests/acceptance/tests/MigrationByUiFlow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test('As a shop owner I want to migrate my data from my old SW5 shop to SW6 via
});

await test.step('Setup connection to local SW5 database', async () => {
await page.getByRole('button', { name: 'Create initia connection' }).click();
await page.getByRole('button', { name: 'Create initial connection' }).click();
await page.getByRole('button', { name: 'Start', exact: true }).click();
await page.getByRole('button', { name: 'Continue' }).click();
await page.getByPlaceholder('Enter name').fill('sw5local');
Expand Down

0 comments on commit 30b8e8f

Please # to comment.