summaryrefslogtreecommitdiffhomepage
path: root/packages/app/e2e
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2026-03-17 19:54:14 +0000
committerGitHub <[email protected]>2026-03-17 19:54:14 +0000
commit7daea69e13e5a17278fe244273fdeb141b0369d6 (patch)
tree4d421611992fb686a052b72ff928711f6805dc35 /packages/app/e2e
parent0772a9591807d15c369c37edc01b9018bdc6e7d1 (diff)
downloadopencode-7daea69e13e5a17278fe244273fdeb141b0369d6.tar.gz
opencode-7daea69e13e5a17278fe244273fdeb141b0369d6.zip
tweak(ui): add an empty state to the sidebar when no projects (#17971)
Co-authored-by: Shoubhit Dash <[email protected]>
Diffstat (limited to 'packages/app/e2e')
-rw-r--r--packages/app/e2e/app/home.spec.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/app/e2e/app/home.spec.ts b/packages/app/e2e/app/home.spec.ts
index a3cedf7cb..5deba4300 100644
--- a/packages/app/e2e/app/home.spec.ts
+++ b/packages/app/e2e/app/home.spec.ts
@@ -3,8 +3,11 @@ import { serverNamePattern } from "../utils"
test("home renders and shows core entrypoints", async ({ page }) => {
await page.goto("/")
+ const nav = page.locator('[data-component="sidebar-nav-desktop"]')
await expect(page.getByRole("button", { name: "Open project" }).first()).toBeVisible()
+ await expect(nav.getByText("No projects open")).toBeVisible()
+ await expect(nav.getByText("Open a project to get started")).toBeVisible()
await expect(page.getByRole("button", { name: serverNamePattern })).toBeVisible()
})