final review
This commit is contained in:
parent
976a880312
commit
92489e5e8a
5 changed files with 13 additions and 77 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue