tweak(ui): add an empty state to the sidebar when no projects (#17971)

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
This commit is contained in:
David Hill
2026-03-17 19:54:14 +00:00
committed by GitHub
parent 0772a95918
commit 7daea69e13
4 changed files with 60 additions and 38 deletions

View File

@@ -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()
})