Update Playwright staging flows and Paddle sandbox checkout
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-03 17:04:32 +01:00
parent 4f1fbcc98b
commit a35808ac15
10 changed files with 341 additions and 203 deletions

View File

@@ -77,8 +77,8 @@ export type JoinTokenPayload = {
usage_limit: number | null;
};
const tenantAdminEmail = process.env.E2E_TENANT_EMAIL ?? 'hello@lumen-moments.demo';
const tenantAdminPassword = process.env.E2E_TENANT_PASSWORD ?? 'Demo1234!';
const tenantAdminEmail = process.env.E2E_TENANT_EMAIL ?? null;
const tenantAdminPassword = process.env.E2E_TENANT_PASSWORD ?? null;
export const test = base.extend<TenantAdminFixtures & TestingApiFixtures>({
tenantAdminCredentials: async ({}, use) => {
@@ -197,6 +197,7 @@ async function performTenantSignIn(page: Page, credentials: TenantCredentials) {
await page.goto('/event-admin');
await page.waitForLoadState('domcontentloaded');
await dismissConsentBanner(page);
}
type StoredTokenPayload = {
@@ -235,3 +236,17 @@ async function expectApiSuccess(responsePromise: Promise<APIResponse>): Promise<
return response;
}
export async function dismissConsentBanner(page: Page): Promise<void> {
const acceptButton = page.getByRole('button', {
name: /consent\.banner\.accept|consent\.modal\.accept_all|Alle akzeptieren|Akzeptieren|Accept all|Accept/i,
}).first();
try {
if (await acceptButton.isVisible({ timeout: 2000 })) {
await acceptButton.click();
}
} catch {
// Ignore missing banner or timing issues.
}
}