This repository has been archived on 2025-12-24. You can view files and clone it, but cannot push or open issues or pull requests.
site-template/ref/starlight/docs/playwright.config.ts
2025-03-07 14:59:06 +01:00

29 lines
646 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
forbidOnly: !!process.env['CI'],
projects: [
{
name: 'Chrome Stable',
use: {
...devices['Desktop Chrome'],
headless: true,
},
},
],
testMatch: '__a11y__/*.test.ts',
// The timeout for the accessibility tests only.
timeout: 180 * 1_000,
webServer: [
{
command: 'pnpm run build && pnpm run preview',
reuseExistingServer: !process.env['CI'],
stdout: 'pipe',
// The timeout of the single build step ran before the accessibility tests.
timeout: 120 * 1_000,
url: 'http://localhost:4321',
},
],
workers: 1,
});