Skip to content

Commit c7cf550

Browse files
committed
test: home page tests
1 parent d007f74 commit c7cf550

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/App.test.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe("navigation pages", () => {
7878
});
7979

8080
//Reason: not enabled yet
81-
test.skip("it render the JOB OFFERS page", async () => {
81+
test("it render the JOB OFFERS page", async () => {
8282
render(
8383
<React.Suspense fallback={<span>Loading...</span>}>
8484
<Routes>
@@ -87,11 +87,12 @@ describe("navigation pages", () => {
8787
</React.Suspense>,
8888
{ wrapper: BrowserRouter },
8989
);
90-
const user = userEvent.setup();
91-
await user.click(screen.getByText("JOB OFFERS"));
92-
expect(
93-
await screen.findByText("Have a look at some opportunities"),
94-
).toBeInTheDocument();
90+
expect(() => screen.getByText("JOB OFFERS")).toThrow();
91+
//const user = userEvent.setup();
92+
/*await user.click(screen.getByText("JOB OFFERS"));
93+
expect(
94+
await screen.findByText("Have a look at some opportunities"),
95+
).not.toBeInTheDocument();*/
9596
});
9697

9798
//Reason: not enabled yet

0 commit comments

Comments
 (0)