more fixes

This commit is contained in:
2026-03-12 07:22:38 +01:00
parent 547215cbe8
commit 4f576ceb04
226 changed files with 14380 additions and 4453 deletions

View File

@@ -1,9 +1,10 @@
import { defineConfig, devices } from '@playwright/test';
import path from 'path';
export default defineConfig({
testDir: './tests/e2e',
timeout: 30000,
expect: { timeout: 5000 },
testDir: './tests',
timeout: 45000,
expect: { timeout: 8000 },
/* Run tests in files in parallel */
fullyParallel: true,
@@ -19,21 +20,42 @@ export default defineConfig({
? [['dot'], ['json', { outputFile: 'test-results/playwright-results.json' }]]
: [['list'], ['html', { outputFolder: 'playwright-report', open: 'never' }]],
/* Artifacts directory for screenshots, traces, network logs */
outputDir: 'tests/artifacts',
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://skinbase26.test',
headless: true,
viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true,
/* Capture trace, screenshot and video only on failure */
/* Capture trace, screenshot and video on failure */
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'off',
video: 'retain-on-failure',
},
projects: [
/* Setup project: logs in and saves session storage */
{
name: 'cpad-setup',
testMatch: /cpad\/.*\.setup\.ts/,
use: { ...devices['Desktop Chrome'] },
},
/* cPad control-panel tests — reuse authenticated session */
{
name: 'cpad',
testDir: './tests/cpad',
use: {
...devices['Desktop Chrome'],
storageState: path.join('tests', '.auth', 'admin.json'),
},
dependencies: ['cpad-setup'],
},
/* General e2e suite */
{
name: 'chromium',
testDir: './tests/e2e',
use: { ...devices['Desktop Chrome'] },
},
/* Uncomment to add Firefox/WebKit coverage: