final review

This commit is contained in:
counterweight 2025-12-20 12:11:22 +01:00
parent 976a880312
commit 92489e5e8a
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 13 additions and 77 deletions

View file

@ -39,7 +39,12 @@ async function authenticate(page: Page, request: APIRequestContext): Promise<str
// Enter invite code first
await page.fill('input#inviteCode', inviteCode);
await page.click('button[type="submit"]');
// Click and wait for invite check API to complete
await Promise.all([
page.waitForResponse((resp) => resp.url().includes("/check") && resp.status() === 200),
page.click('button[type="submit"]'),
]);
// Wait for registration form
await expect(page.locator("h1")).toHaveText("Create account");