Fix 404 test
This commit is contained in:
@@ -19,7 +19,7 @@ const NotFoundPage: React.FC = () => (
|
||||
<title>404 | Ei vaan löydy</title>
|
||||
<meta name="robots" content="noindex" />
|
||||
</Helmet>
|
||||
<NotFound>
|
||||
<NotFound id="not-found">
|
||||
<strong>404</strong> | Ei vaan löydy
|
||||
</NotFound>
|
||||
</>
|
||||
|
||||
@@ -11,7 +11,6 @@ test("Page contains the text 404", async t => {
|
||||
/**
|
||||
* Test if there is a favicon element on the page
|
||||
*/
|
||||
const elem = Selector(".not-found-page");
|
||||
const elem = Selector("#not-found");
|
||||
await t.expect(elem.textContent).contains("404");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user