Fix marketing auth/checkout E2E selectors

This commit is contained in:
Codex Agent
2026-01-03 15:13:03 +01:00
parent 7ea34b3b20
commit 08fe64b965
3 changed files with 7 additions and 2 deletions

View File

@@ -7,11 +7,13 @@ test.describe('Standard package checkout with Paddle completion', () => {
test('registers, applies coupon, and reaches confirmation', async ({
page,
clearTestMailbox,
seedTestCoupons,
getLatestCheckoutSession,
simulatePaddleCompletion,
getTestMailbox,
}) => {
await clearTestMailbox();
await seedTestCoupons();
const unique = Date.now();
const email = `checkout+${unique}@example.test`;
@@ -97,7 +99,9 @@ test.describe('Standard package checkout with Paddle completion', () => {
await page.getByPlaceholder(/Gutscheincode/i).fill('PERCENT10');
await page.getByRole('button', { name: /Gutschein anwenden|Apply coupon/i }).click();
await expect(page.getByText(/Gutschein PERCENT10/i)).toBeVisible();
await expect(
page.getByText(/Gutschein PERCENT10 aktiviert|Coupon PERCENT10 applied/i)
).toBeVisible();
const termsCheckbox = page.locator('#checkout-terms-hero');
await expect(termsCheckbox).toBeVisible();