Skip to content

Commit

Permalink
Refactor Playwright test workflow for Vercel deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaiahA21 committed Oct 5, 2024
1 parent 80f97c0 commit f87b285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright_tests_on_vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

# Run Playwright tests
- name: Run tests
run: npx playwright test --workers=4
run: npx playwright test --workers=4 --project=chromium
env:
BASE_URL: ${{github.event.deployment_status.environment_url}}

Expand Down
4 changes: 3 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
reporter: [
['html', { outputFolder: 'playwright-reports', open: 'never' }],
['list']],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down

0 comments on commit f87b285

Please sign in to comment.