saleor-dashboard/.testcafe/exampleTest.js

14 lines
387 B
JavaScript
Raw Normal View History

2019-08-09 15:16:44 +00:00
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();
});