Files
website/playwright.config.js
antigravity f0b4f42cb1
Test and Deploy Website / test-and-deploy (push) Successful in 1m12s
Initial commit with tests and deployment pipeline
2026-06-15 14:00:40 +02:00

28 lines
650 B
JavaScript

const { defineConfig, devices } = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests',
fullyParallel: false,
forbiddenOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1, // Restrict to 1 worker to conserve RAM on 2GB VPS
reporter: 'list',
use: {
baseURL: 'http://localhost:8080',
trace: 'on-first-retry',
headless: true,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'node server.js',
url: 'http://localhost:8080',
reuseExistingServer: !process.env.CI,
timeout: 10000,
},
});