corentin_wakdo/playwright.config.js
Corentin JOGUET aef6174b5b
All checks were successful
CI / secret-scan (push) Successful in 10s
CI / php-lint (push) Successful in 25s
CI / js-tests (push) Successful in 30s
CI / static-tests (push) Successful in 47s
CI / auto-merge (push) Has been skipped
test(e2e): parcours borne Playwright (conteneur, stack jetable) (#45)
2026-06-17 16:38:33 +02:00

23 lines
894 B
JavaScript

// Configuration Playwright (E2E borne). CommonJS : la racine n'est pas "type:module".
// La stack est montee a part (tests/e2e/run.sh) ; BASE_URL pointe vers wakdo-web.
const { defineConfig, devices } = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests/e2e',
// Headless : tourne sur serveur sans ecran (dans le conteneur Playwright officiel).
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: [['list'], ['html', { open: 'never', outputFolder: 'playwright-report' }]],
use: {
// run.sh fixe BASE_URL (hostname .test, joignable via --add-host).
baseURL: process.env.BASE_URL || 'http://kiosk.wakdo.test',
headless: true,
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
],
});