fix(test): update issues page test for empty state behavior change

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing 2026-03-26 19:30:59 +08:00
parent 5696b78a26
commit 488b41fc5e

View file

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