forked from Rezmason/matrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.regression.config.js
More file actions
32 lines (31 loc) · 1.06 KB
/
playwright.regression.config.js
File metadata and controls
32 lines (31 loc) · 1.06 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
// @ts-check
import { defineConfig, devices } from "@playwright/test";
/**
* Regression browser suite (`tests/regression/`):
* - `matrix-full.spec.js` — every `getAvailableModes()` × `getAvailableEffects()` with **forced WebGL**
* (experimental `renderer=three` / `renderer=p5` presets excluded; see file header).
* - `matrix-experimental-renderers.spec.js` — **three-rain** and **p5-rain** entry URLs.
*
* Run with: `npm run test:regression`
* Not part of default `npm test` (see testIgnore in playwright.config.js).
*/
export default defineConfig({
testDir: "./tests/regression",
testMatch: "**/*.spec.js",
timeout: 120_000,
expect: { timeout: 15_000 },
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
use: {
baseURL: "http://127.0.0.1:4173",
trace: "on-first-retry",
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
webServer: {
command: "npx --yes serve . -l 4173",
url: "http://127.0.0.1:4173",
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});