Skip to content

Commit

Permalink
Adding simple 404 test
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-gade committed Aug 2, 2024
1 parent 0f50aa5 commit b2f9ba3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/playwright/e2e/wfo-page.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-disable no-await-in-loop, no-plusplus */
const { test, expect } = require("@playwright/test");

const { describe } = test;

describe("WFO Information Page Tests", () => {
test("Responds 404 for any invalid WFO route", async ({ page }) => {
const response = await page.goto("http://localhost:8080/offices/XYZ");

await expect(response.status()).toEqual(404);
});
});

0 comments on commit b2f9ba3

Please sign in to comment.