✨ feat: implement new feature for enhanced user experience
This commit is contained in:
23
tests/fixtures/test-constants.ts
vendored
Normal file
23
tests/fixtures/test-constants.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Zentrale Test-Konstanten für alle Tests.
|
||||
*
|
||||
* Passe diese Werte an dein Projekt an:
|
||||
* - TEST_USER: E-Mail/Passwort für den E2E-Test-User
|
||||
* - ADMIN_TOKEN: Token aus api/config.yml.env
|
||||
* - API_BASE: API-Pfad (Standard: /api)
|
||||
*/
|
||||
|
||||
export const TEST_USER = {
|
||||
email: "playwright-e2e@test.example.com",
|
||||
password: "PlaywrightTest1",
|
||||
firstName: "Playwright",
|
||||
lastName: "E2E",
|
||||
} as const
|
||||
|
||||
export const ADMIN_TOKEN = process.env.ADMIN_TOKEN || "CHANGE_ME"
|
||||
export const API_BASE = "/api"
|
||||
|
||||
export const BASIC_AUTH = {
|
||||
username: process.env.BASIC_AUTH_USER || "web",
|
||||
password: process.env.BASIC_AUTH_PASS || "web",
|
||||
} as const
|
||||
Reference in New Issue
Block a user