Files
plex-playlist/frontend/playwright.config.ts
Cliff Hill c5660e547a
Some checks failed
Tests / Mixed Line Ending Check (push) Has been cancelled
Tests / Darglint Docstring Check (push) Has been cancelled
Tests / Frontend Tests (push) Has been cancelled
Tests / End of File Check (push) Has been cancelled
Tests / Build and Push CICD Image (push) Has started running
Tests / YAML Syntax Check (push) Has been cancelled
Tests / TOML Formatting Check (push) Has been cancelled
Tests / Ruff Linting (push) Has been cancelled
Tests / Ruff Format Check (push) Has been cancelled
Tests / No Docstring Types Check (push) Has been cancelled
Tests / End-to-End Tests (push) Has been cancelled
Tests / TOML Syntax Check (push) Has been cancelled
Tests / TSDoc Lint Check (push) Has been cancelled
Tests / Trailing Whitespace Check (push) Has been cancelled
Tests / Pyright Type Check (push) Has been cancelled
Tests / ESLint Check (push) Has been cancelled
Tests / Backend Tests (push) Has been cancelled
Tests / Prettier Format Check (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / TypeScript Type Check (push) Has been cancelled
Tests / Backend Doctests (push) Has been cancelled
Trying to make e2e be truly non-interactive and headless.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-30 22:32:59 -04:00

49 lines
1.1 KiB
TypeScript

import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests/e2e',
timeout: 30 * 1000,
expect: {
timeout: 5000
},
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'playwright-results.xml' }]] : 'html',
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
headless: process.env.CI ? true : false,
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
headless: process.env.CI ? true : false,
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
headless: process.env.CI ? true : false,
},
},
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
headless: process.env.CI ? true : false,
},
}
],
webServer: {
command: 'yarn dev',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
}
})