Fix E2E test

This commit is contained in:
Aarni Halinen
2020-10-08 19:31:04 +03:00
parent 2df0b8e1ef
commit 0e18968178
-11
View File
@@ -5,17 +5,6 @@
*/
import { Selector, ClientFunction } from "testcafe";
fixture`Admin page renders and functions correctly`.page("http://localhost:3000/admin");
test("Header contains text \"Admin panel\"", async t => {
/**
* Test if the header contains the text.
*/
const header = Selector(".heading");
await t.expect(header.textContent)
.contains("Admin panel");
});
fixture`Admin login page functions correctly`.page("http://localhost:3000/admin/login");
test("Login form exists", async t => {