Add few waits for tests
This commit is contained in:
@@ -20,10 +20,12 @@ test("Logged in user can create event", async t => {
|
||||
const loginForm = Selector("form.admin-login-form");
|
||||
await t.expect(loginForm.exists).ok();
|
||||
await doLogin(t);
|
||||
await t.wait(3000);
|
||||
await t.expect(await getPageUrl()).contains("/admin/events");
|
||||
|
||||
const newButton = Selector("[data-e2e=\"create-event\"]");
|
||||
await t.click(newButton);
|
||||
await t.wait(3000);
|
||||
await t.expect(await getPageUrl()).contains("/admin/events/create");
|
||||
|
||||
const titleFi = Selector("#rjsf_title_fi");
|
||||
|
||||
Reference in New Issue
Block a user