Skip to content

Commit

Permalink
Adjust playwright.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Sep 27, 2023
1 parent 6f02f4c commit 2a46cb6
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions sample-apps/react/egress-composite/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from '@playwright/test';
import { defineConfig, devices } from '@playwright/test';

/**
* See https://playwright.dev/docs/test-configuration.
Expand All @@ -17,14 +17,30 @@ export default defineConfig({
maxDiffPixelRatio: 0.02,
},
},
use: {
headless: !!process.env.CI,
trace: 'on-first-retry',
viewport: { width: 1920, height: 1080 },
baseURL: 'http://localhost:5173',
// TODO: find out why custom data-test-id does not work
// testIdAttribute: 'data-testid',
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
// TODO: find out why custom data-test-id does not work
// testIdAttribute: 'data-testid',
headless: !!process.env.CI,
trace: 'on-first-retry',
viewport: { width: 1920, height: 1080 },
baseURL: 'http://localhost:5173',
launchOptions: {
args: [
'--font-render-hinting=none',
'--disable-skia-runtime-opts',
'--disable-system-font-check',
'--disable-font-subpixel-positioning',
'--disable-lcd-text',
'--disable-remote-fonts',
],
},
},
},
],
webServer: [
{
timeout: 10000,
Expand Down

0 comments on commit 2a46cb6

Please sign in to comment.