Skip to content

Commit

Permalink
Fix Playwright Tests (pacocoursey#81)
Browse files Browse the repository at this point in the history
* Update test.yml

* Update playwright.config.ts

* fix prettier
  • Loading branch information
Thomas Wang authored Feb 7, 2023
1 parent abe6b24 commit 9a808d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- run: pnpm build
- run: pnpm test:format
- run: pnpm playwright install --with-deps
- run: pnpm test
- run: pnpm test || exit 1
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: playwright-report
path: playwright-report
path: playwright-report.json
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PlaywrightTestConfig, devices } from '@playwright/test'
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: process.env.CI ? 'github' : 'list',
reporter: process.env.CI ? [['github'], ['json', { outputFile: 'playwright-report.json' }]] : 'list',
testDir: './test',
use: {
trace: 'on-first-retry',
Expand Down

0 comments on commit 9a808d0

Please sign in to comment.