Skip to content

Commit fcd1b0a

Browse files
committed
Guard create-org input against hydration clobbering
1 parent 8841d31 commit fcd1b0a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

e2e/cloud/auth-routing-flow.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,17 @@ scenario(
5656
});
5757

5858
await step("Create the first org → canonical dashboard at /<slug>", async () => {
59-
await page.getByPlaceholder("Northwind Labs").fill("Flow Test Org");
59+
const orgName = "Flow Test Org";
60+
const orgNameInput = page.getByPlaceholder("Northwind Labs");
61+
await page.waitForLoadState("networkidle");
62+
await orgNameInput.fill(orgName);
63+
await page.waitForTimeout(250);
64+
if ((await orgNameInput.inputValue()) !== orgName) {
65+
await orgNameInput.fill(orgName);
66+
}
67+
expect(await orgNameInput.inputValue(), "org name survives create-org hydration").toBe(
68+
orgName,
69+
);
6070
await page.getByRole("button", { name: "Create organization" }).click();
6171
await page.getByText("Connect your MCP client").waitFor({ timeout: 30_000 });
6272
await page.getByRole("button", { name: "Continue to app" }).click();

0 commit comments

Comments
 (0)