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:
parent
5696b78a26
commit
488b41fc5e
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue