cal.pub0.org/playwright/onboarding.test.ts

23 lines
417 B
TypeScript
Raw Normal View History

2021-11-08 14:10:02 +00:00
import { kont } from "kont";
import { loginProvider } from "./lib/loginProvider";
jest.setTimeout(60e3);
jest.retryTimes(2);
const ctx = kont()
.useBeforeEach(
loginProvider({
user: "onboarding",
})
)
.done();
test("redirects to /getting-started after login", async () => {
await ctx.page.waitForNavigation({
url(url) {
return url.pathname === "/getting-started";
},
});
});