Skip to content

Commit 8534bf7

Browse files
committed
.
1 parent 3fbc3ff commit 8534bf7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/error-page/error-page-client.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ describe("ErrorPage", () => {
2121

2222
expect(
2323
screen.getByRole("heading", { name: /something went wrong/i }),
24-
).toBeInTheDocument();
24+
).toBeVisible();
2525
});
2626

2727
it("displays error description", () => {
2828
render(<ErrorPage error={new Error("Test")} reset={vi.fn()} />);
2929

30-
expect(
31-
screen.getByText(/an unexpected error occurred/i),
32-
).toBeInTheDocument();
30+
expect(screen.getByText(/an unexpected error occurred/i)).toBeVisible();
3331
});
3432

3533
it("calls reset function when Try again button is clicked", async () => {

0 commit comments

Comments
 (0)