Skip to content

Commit

Permalink
Maybe this will work too
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Nov 5, 2024
1 parent 50586c1 commit 0037c61
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/01_join_form_meshdb_down.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ import { isDeepStrictEqual } from "util";
const joinFormTimeout = 20000;
const unitTestTimeout = 5000;


test.beforeEach(async ({ context }) => {
// Pretends meshdb is hard down by having no mocked handler for the api
await context.route(/api\/v1\/join/, route => route.abort());
});

test("meshdb is hard down but succeed anyway", async ({ page }) => {
// Block access to the join form API
await page.route("**/api/v1/join/**", route => route.abort());

test.setTimeout(joinFormTimeout);
await page.goto("/join");

Expand Down

0 comments on commit 0037c61

Please sign in to comment.