From 2f045b462f9b411c61cfb3b9e1bb9d29da0f3991 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Wed, 8 Jul 2020 18:50:52 +0300 Subject: [PATCH] Fix 404 test --- src/pages/NotFoundPage.tsx | 2 +- tests/testcafe/404.test.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/NotFoundPage.tsx b/src/pages/NotFoundPage.tsx index 8720f6b..ab08ac7 100644 --- a/src/pages/NotFoundPage.tsx +++ b/src/pages/NotFoundPage.tsx @@ -19,7 +19,7 @@ const NotFoundPage: React.FC = () => ( 404 | Ei vaan löydy - + 404 | Ei vaan löydy diff --git a/tests/testcafe/404.test.ts b/tests/testcafe/404.test.ts index 93e52c7..a555ec3 100644 --- a/tests/testcafe/404.test.ts +++ b/tests/testcafe/404.test.ts @@ -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"); }); -