Restructure page components, add canonical links

This commit is contained in:
Jan Tuomi
2018-06-22 12:18:54 +03:00
parent c34664f556
commit e22335dbfc
15 changed files with 122 additions and 16 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* TestCafé test fixtures.
* This file is used by TestCafé to run end-to-end tests with chrome against the site.
* Tests are grouped into fixtures and fixtures into files.
*/
import { Selector } from "testcafe";
fixture`404 page renders and functions correctly`.page("http://localhost:3000/404");
test("Page contains the text 404", async t => {
/**
* Test if there is a favicon element on the page
*/
const elem = Selector(".not-found-page");
await t.expect(elem.textContent).contains("404");
});