Files
starr-philproperties/apps/e2e/playwright.config.js
T
kennethobsequio 05f27e34d7 asset viewer now viewing on tabs
Tabs is better for this yay

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
2026-08-28 19:34:10 +08:00

26 lines
769 B
JavaScript

const { defineConfig, devices } = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests',
fullyParallel: false, // specs share/mutate DB fixtures tagged by module — keep runs serial to avoid cross-spec QA-TEST collisions
workers: 1,
retries: process.env.CI ? 1 : 0,
reporter: [['html', { open: 'never' }], ['list']],
timeout: 120_000,
use: {
baseURL: 'http://localhost:5173',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
],
webServer: {
command: 'pnpm --dir ../.. dev',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});