From f87b285af50152ec23a16326d4580f17ebd0e886 Mon Sep 17 00:00:00 2001 From: IsaiahA21 <76446914+IsaiahA21@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:08:17 -0600 Subject: [PATCH] Refactor Playwright test workflow for Vercel deployment --- .github/workflows/playwright_tests_on_vercel.yml | 2 +- playwright.config.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright_tests_on_vercel.yml b/.github/workflows/playwright_tests_on_vercel.yml index d7d706b..e368f06 100644 --- a/.github/workflows/playwright_tests_on_vercel.yml +++ b/.github/workflows/playwright_tests_on_vercel.yml @@ -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}} diff --git a/playwright.config.ts b/playwright.config.ts index a0b0da6..a0fb7a7 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -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('/')`. */