Unified · Split
| @@ -56,7 +56,17 @@ scenario( · 55 unmodified lines | |||
| 56 | }); | 56 | }); |
| 57 | 57 | ||
| 58 | await step("Create the first org → canonical dashboard at /<slug>", async () => { | 58 | 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 | ); | ||
| 60 | await page.getByRole("button", { name: "Create organization" }).click(); | 70 | await page.getByRole("button", { name: "Create organization" }).click(); |
| 61 | await page.getByText("Connect your MCP client").waitFor({ timeout: 30_000 }); | 71 | await page.getByText("Connect your MCP client").waitFor({ timeout: 30_000 }); |
| 62 | await page.getByRole("button", { name: "Continue to app" }).click(); | 72 | await page.getByRole("button", { name: "Continue to app" }).click(); |