diff options
| author | Adam <[email protected]> | 2026-03-08 19:28:58 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-08 19:28:58 -0500 |
| commit | b976f339e857be3fae20f179992aa82fbea24f08 (patch) | |
| tree | 14655402aef6b5ba8e0c0c5c13797a3984319e6c /packages/app/e2e/projects | |
| parent | 7d7837e5b6eb0fc88d202936b726ab890f4add53 (diff) | |
| download | opencode-b976f339e857be3fae20f179992aa82fbea24f08.tar.gz opencode-b976f339e857be3fae20f179992aa82fbea24f08.zip | |
feat(app): generate color palettes (#16232)
Diffstat (limited to 'packages/app/e2e/projects')
| -rw-r--r-- | packages/app/e2e/projects/projects-close.spec.ts | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/packages/app/e2e/projects/projects-close.spec.ts b/packages/app/e2e/projects/projects-close.spec.ts index 76b1487e9..9454d683f 100644 --- a/packages/app/e2e/projects/projects-close.spec.ts +++ b/packages/app/e2e/projects/projects-close.spec.ts @@ -25,16 +25,26 @@ test("closing active project navigates to another open project", async ({ page, await clickMenuItem(menu, /^Close$/i, { force: true }) await expect - .poll(() => { - const pathname = new URL(page.url()).pathname - if (new RegExp(`^/${slug}/session(?:/[^/]+)?/?$`).test(pathname)) return "project" - if (pathname === "/") return "home" - return "" - }) + .poll( + () => { + const pathname = new URL(page.url()).pathname + if (new RegExp(`^/${slug}/session(?:/[^/]+)?/?$`).test(pathname)) return "project" + if (pathname === "/") return "home" + return "" + }, + { timeout: 15_000 }, + ) .toMatch(/^(project|home)$/) await expect(page).not.toHaveURL(new RegExp(`/${otherSlug}/session(?:[/?#]|$)`)) - await expect(otherButton).toHaveCount(0) + await expect + .poll( + async () => { + return await page.locator(projectSwitchSelector(otherSlug)).count() + }, + { timeout: 15_000 }, + ) + .toBe(0) }, { extra: [other] }, ) |
