28 lines
650 B
JavaScript
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,
|
|
},
|
|
});
|