Files
web2.0-frontend/tests/testcafe/404.test.ts
T
Aarni Halinen 4c5bbfe90c Fix getSiteRoot
2021-01-12 23:28:45 +02:00

14 lines
366 B
TypeScript

import { Selector } from "testcafe";
import { getSiteRoot } from "./utils";
fixture`404 page renders and functions correctly`.page(`${getSiteRoot()}/404`);
test("Page contains the text 404", async t => {
/**
* Test if there is a favicon element on the page
*/
const elem = Selector("#not-found");
await t.expect(elem.textContent).contains("404");
});