Fix marketing auth/checkout E2E selectors
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user