Add fallback pages to events & signup
This commit is contained in:
@@ -17,7 +17,13 @@ fixture`Event signup`.page(getSiteRoot())
|
||||
await deleteForm(ctx.formId, token);
|
||||
});
|
||||
|
||||
test.skip("User signups to event from front page", async (t) => {
|
||||
test("User signups to event from front page", async (t) => {
|
||||
// Force refresh, so that ISR updates front page events and creates the pages created in before()
|
||||
await t.wait(15000);
|
||||
await t.navigateTo("/");
|
||||
await t.wait(5000);
|
||||
await t.navigateTo("/");
|
||||
|
||||
const CardSelector = Selector("[data-e2e=\"event-card\"]").withText("title_fi").nth(0);
|
||||
|
||||
await t
|
||||
|
||||
@@ -156,4 +156,3 @@ export const generateTestEvent = async (formIds = [], jwt: string) => (
|
||||
);
|
||||
|
||||
export const sleep = async (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
export const reloadPage = (t?: TestController) => ClientFunction(() => window.location.reload(), { boundTestRun: t });
|
||||
|
||||
Reference in New Issue
Block a user