Skip to content

Commit

Permalink
Try to get more screenshots, multiple workers, github annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpelt committed Jun 22, 2024
1 parent 7ce034a commit 08c3159
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/integration_tests/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ test('test good flow', async ({ page }) => {
)
const annotator = await page.$('#version-0')
await annotator?.screenshot({
path: 'playwright-report/annotator-screenshot.png'
path: './screenshots/annotator-screenshot.png'
})
})
6 changes: 3 additions & 3 deletions frontend/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ export default defineConfig({
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
workers: process.env.CI ? 2 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
reporter: process.env.CI ? [['github'], ['html']] : 'html',
/* 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('/')`. */
// baseURL: 'http://127.0.0.1:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
screenshot: 'only-on-failure'
screenshot: 'on'
},

/* Configure projects for major browsers */
Expand Down

0 comments on commit 08c3159

Please sign in to comment.