Fix 404 test

This commit is contained in:
Aarni Halinen
2020-07-08 18:50:52 +03:00
parent 545562bf0d
commit 2f045b462f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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>
</>
+1 -2
View File
@@ -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");
});