-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
42 lines (40 loc) · 1020 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
42 lines (40 loc) · 1020 Bytes
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
import { defineConfig } from '@playwright/test';
import path from 'node:path';
const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? 'http://localhost:3000';
export default defineConfig({
testDir: './e2e',
timeout: 150_000,
expect: { timeout: 30_000 },
fullyParallel: false,
retries: 0,
reporter: [['list']],
use: {
baseURL,
headless: true,
storageState: {
cookies: [],
origins: [
{
origin: baseURL,
localStorage: [
{ name: 'tikplay:terms:2026-07-21', value: 'accepted' },
],
},
],
},
launchOptions: {
// Let media play without a user gesture so the player can be exercised.
args: ['--autoplay-policy=no-user-gesture-required'],
},
},
webServer: {
command: 'npm run start',
url: baseURL,
reuseExistingServer: true,
timeout: 120_000,
env: {
DB_PATH: path.resolve(__dirname, 'data', 'tikplay.json'),
CACHE_DIR: path.resolve(__dirname, 'cache'),
},
},
});