Update Playwright staging flows and Paddle sandbox checkout

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

View File

@@ -142,14 +142,11 @@ test.describe('Guest PWA limit experiences', () => {
});
await page.goto(`/e/${EVENT_TOKEN}/upload?task=1`);
await expect(page.getByText(/Nur noch 5 von 100 Fotos möglich/i)).toBeVisible();
await expect(page.getByText(/Galerie läuft in 2 Tagen ab/i)).toBeVisible();
await expect(page.getByRole('button', { name: /Foto aufnehmen/i })).toBeVisible();
await expect(page.getByText(/Upload-Limit erreicht/i)).toHaveCount(0);
await page.goto(`/e/${EVENT_TOKEN}/gallery`);
await expect(page.getByText(/Noch 2 Tage online/i)).toBeVisible();
await expect(page.getByText(/Nur noch 5 von 100 Fotos möglich/i)).toBeVisible();
await expect(page.getByText(/Galerie läuft in 2 Tagen ab/i)).toBeVisible();
await expect(page.getByRole('button', { name: /Letzte Fotos hochladen/i })).toBeVisible();
await expect(page.getByRole('heading', { name: /Galerie/i }).first()).toBeVisible();
});
test('marks uploads as blocked and highlights expired gallery state', async ({ page }) => {
@@ -201,10 +198,10 @@ test.describe('Guest PWA limit experiences', () => {
await page.goto(`/e/${EVENT_TOKEN}/upload?task=1`);
await expect(page.getByText(/Upload-Limit erreicht/i)).toBeVisible();
await expect(page.getByRole('button', { name: /Foto aufnehmen/i })).toHaveCount(0);
await page.goto(`/e/${EVENT_TOKEN}/gallery`);
await expect(page.getByText(/Galerie abgelaufen/i)).toBeVisible();
await expect(page.getByText(/Die Galerie ist abgelaufen\. Uploads sind nicht mehr möglich\./i)).toBeVisible();
await expect(page.getByRole('heading', { name: /Galerie/i }).first()).toBeVisible();
});
test('blocks uploads and guest access once all limits are exhausted', async ({ page }) => {
@@ -266,11 +263,9 @@ test.describe('Guest PWA limit experiences', () => {
await page.goto(`/e/${EVENT_TOKEN}/upload?task=1`);
await expect(page.getByText(/Upload-Limit erreicht/i)).toBeVisible();
await expect(page.getByRole('button', { name: /Upload/i })).toBeDisabled();
await expect(page.getByText(/Limit erreicht/i)).toBeVisible();
await expect(page.getByRole('button', { name: /Foto aufnehmen/i })).toHaveCount(0);
await page.goto(`/e/${EVENT_TOKEN}/gallery`);
await expect(page.getByText(/Upload-Limit erreicht/i)).toBeVisible();
await expect(page.getByText(/Limit erreicht/i)).toBeVisible();
await expect(page.getByRole('heading', { name: /Galerie/i }).first()).toBeVisible();
});
});