Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(test): update issues page test for empty state behavior change
Naiyuan Qing488b41fc5eee
diff --git a/apps/web/app/(dashboard)/issues/page.test.tsx b/apps/web/app/(dashboard)/issues/page.test.tsxindex 64372832c8..6866d60f1e 100644--- a/apps/web/app/(dashboard)/issues/page.test.tsx+++ b/apps/web/app/(dashboard)/issues/page.test.tsx@@ -310,12 +310,13 @@ describe("IssuesPage", () => {expect(screen.getByText("Priority: All")).toBeInTheDocument();});- it("shows empty state when no issues match", () => {+ it("shows empty board view when no issues exist", () => {mockStoreState.loading = false;mockStoreState.issues = [];render(<IssuesPage />);- expect(screen.getByText("No matching issues")).toBeInTheDocument();+ // Should still render the board/list view, not a "no issues" message+ expect(screen.queryByText("No matching issues")).not.toBeInTheDocument();});});