forked from mirror/crumbs-original
Generate random passwords in global-setup and share via temp file so all Playwright workers use the same credentials. Screenshot scripts use module-level crypto.randomUUID() since they run single-process. Unit test auth passwords also use randomUUID(). Eliminates security scanner alerts for passwords committed to git. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
515 B
TypeScript
19 lines
515 B
TypeScript
export const BASE_URL = 'http://localhost:4173';
|
|
export const SCREENSHOT_DB = './data/screenshots.db';
|
|
export const OUTPUT_DIR = 'website/assets';
|
|
|
|
export const DESKTOP_VIEWPORT = { width: 1280, height: 800 };
|
|
export const MOBILE_VIEWPORT = { width: 390, height: 844 };
|
|
|
|
export const ADMIN = {
|
|
email: 'admin@bretzel.app',
|
|
displayName: 'Bretzel Admin',
|
|
password: crypto.randomUUID()
|
|
};
|
|
|
|
export const COLLABORATOR = {
|
|
email: 'salzig@bretzel.app',
|
|
displayName: 'Salzig Bretzel',
|
|
password: crypto.randomUUID()
|
|
};
|