rework of the e2e test suites

This commit is contained in:
Codex Agent
2025-11-19 22:23:33 +01:00
parent 8d2075bdd2
commit 0127114e59
32 changed files with 1593 additions and 124 deletions

View File

@@ -1,15 +1,7 @@
import { defineConfig, devices } from '@playwright/test';
/**
* Read environment variables from file.
* https://playwright.dev/docs/test-configuration#launching-the-player
*/
function getDisplayValue(value: string | undefined) {
return value === undefined ? '1' : value;
}
export default defineConfig({
testDir: './tests/e2e',
testDir: './tests/ui',
timeout: 90_000,
fullyParallel: true,
forbidOnly: !!process.env.CI,
@@ -23,10 +15,25 @@ export default defineConfig({
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{
name: 'chromium',
name: 'purchase',
testDir: './tests/ui/purchase',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'auth',
testDir: './tests/ui/auth',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'admin',
testDir: './tests/ui/admin',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'guest',
testDir: './tests/ui/guest',
use: { ...devices['Desktop Chrome'] },
},
],