Checkout: minimize registration data
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-06 09:23:01 +01:00
parent 29c3c42134
commit 33af04db1b
9 changed files with 105 additions and 157 deletions

View File

@@ -18,8 +18,6 @@ test.describe('Standard package checkout with Paddle completion', () => {
const unique = Date.now();
const email = `checkout+${unique}@example.test`;
const password = 'Password123!';
const username = `playwright-${unique}`;
await page.addInitScript(() => {
window.__openedWindows = [];
const originalOpen = window.open;
@@ -87,9 +85,20 @@ test.describe('Standard package checkout with Paddle completion', () => {
await page.fill('input[name="first_name"]', 'Playwright');
await page.fill('input[name="last_name"]', 'Tester');
await page.fill('input[name="email"]', email);
await page.fill('input[name="phone"]', '+49123456789');
await page.fill('input[name="address"]', 'Teststr. 1, 12345 Berlin');
await page.fill('input[name="username"]', username);
const addressInput = page.locator('input[name="address"]');
if (await addressInput.isVisible()) {
await addressInput.fill('Teststr. 1, 12345 Berlin');
}
const phoneInput = page.locator('input[name="phone"]');
if (await phoneInput.isVisible()) {
await phoneInput.fill('+49123456789');
}
const usernameInput = page.locator('input[name="username"]');
if (await usernameInput.isVisible()) {
await usernameInput.fill(email);
}
await page.fill('input[name="password"]', password);
await page.fill('input[name="password_confirmation"]', password);
await page.check('input[name="privacy_consent"]');