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

@@ -15,7 +15,7 @@ test.describe('Marketing auth flows', () => {
await page.getByLabel(/Nachname/i).fill('Tester');
await page.getByLabel(/^E-Mail/i).fill(email);
await page.getByLabel(/Telefon/i).fill('+49123456789');
await page.getByLabel(/Adresse/i).fill('Teststr. 1, 12345 Berlin');
await page.fill('input[name="address"]', 'Teststr. 1, 12345 Berlin');
await page.getByLabel(/Username/i).fill(username);
await page.fill('input[name="password"]', password);
await page.fill('input[name="password_confirmation"]', password);

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();