Initial commit with tests and deployment pipeline
Test and Deploy Website / test-and-deploy (push) Successful in 1m12s

This commit is contained in:
2026-06-15 14:00:18 +02:00
commit f0b4f42cb1
11 changed files with 613 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
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,
},
});