Open platform to collect and prioritize feedback
e2e: wait for the signed-in page after entering the sign-in code
Matt Roberts2f78f6341dcc
diff --git a/e2e/step_definitions/user.steps.ts b/e2e/step_definitions/user.steps.tsindex ec39ad935..b1d1346fe 100644--- a/e2e/step_definitions/user.steps.ts+++ b/e2e/step_definitions/user.steps.ts@@ -22,6 +22,7 @@ Given("I sign in as {string}", async function (this: FiderWorld, userName: strinawait this.page.fill("#input-code", code)await this.page.getByRole("button", { name: "submit" }).click()- // Wait for navigation after successful code verification- await this.page.waitForLoadState("networkidle")+ // Verifying the code closes the modal and reloads the page. Wait for the signed-in page itself:+ // waitForLoadState resolves immediately on the old page, letting the next step click it just before it's replaced+ await this.page.locator(".c-menu-user").waitFor()})