-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.webgpu.config.ts
More file actions
51 lines (50 loc) · 1.14 KB
/
playwright.webgpu.config.ts
File metadata and controls
51 lines (50 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
testMatch: '**/webgpu-canary.spec.ts',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
timeout: 120_000,
expect: {
timeout: 60_000
},
reporter: [
['html', { outputFolder: 'playwright-report-webgpu' }],
['json', { outputFile: 'test-results/webgpu-results.json' }],
['list']
],
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'off'
},
projects: [
{
name: 'chromium-webgpu',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1440, height: 960 },
launchOptions: {
executablePath: process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH,
args: [
'--enable-unsafe-webgpu',
'--enable-features=Vulkan',
'--ignore-gpu-blocklist',
'--use-angle=vulkan'
]
}
}
}
],
webServer: process.env.CI
? {
command: 'PORT=5173 pnpm run dev',
port: 5173,
reuseExistingServer: false,
timeout: 120_000
}
: undefined
});