Fix E2E: accept Terms of Service checkbox before passkey registration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-05-23 10:34:26 +02:00
parent 5c299ab9f3
commit 9959ce90e6
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -60,6 +60,7 @@ async function registerAndLogin(page: Page, cdp: CDPSession) {
await page.goto("/auth/register");
await page.getByLabel("Email").fill(email);
await page.getByLabel("Username").fill(username);
await page.getByRole("checkbox").check();
await page.getByRole("button", { name: /Register with Passkey/ }).click();
await expect(page).toHaveURL("/", { timeout: 10000 });