Skip to content

Commit

Permalink
Added screenshots on failure option
Browse files Browse the repository at this point in the history
  • Loading branch information
CandelR committed Jan 14, 2025
1 parent 76ba52e commit a9707d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Upload test artifacts
uses: actions/upload-artifact@v3
with:
name: playwright-artifacts
path: test-results
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"vercel:install": "yarn run add:npmrc && yarn install",
"test:unit": "vitest run test/unit && vitest run src/ ",
"test:coverage": "vitest run --coverage",
"test:playwright": "yarn playwright test --headed",
"test:playwright": "yarn playwright test",
"test:chromium": "yarn playwright test --project=chromium",
"test:firefox": "yarn playwright test --project=firefox",
"test:safari": "yarn playwright test --project=webkit",
Expand Down
1 change: 1 addition & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default defineConfig({
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'https://drive.internxt.com/login',
screenshot: 'only-on-failure',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down

0 comments on commit a9707d4

Please sign in to comment.