saleor-dashboard/.testcafe/exampleTest.js
dominik-zeglen 1db8ae0d01 Add testcafe
2019-08-09 17:16:44 +02:00

13 lines
387 B
JavaScript

import { Selector } from "testcafe";
fixture("Example test").page("http://localhost:8000/dashboard/next");
test("User can log in", async t => {
await t
.typeText('[name="email"]', "admin@example.com")
.typeText('[name="password"]', "admin")
.click('[type="submit"]');
const header = await Selector('[data-tc="home-header"]').exists;
await t.expect(header).ok();
});