Add fallback pages to events & signup

This commit is contained in:
Aarni Halinen
2021-03-08 21:11:49 +02:00
parent ceb42044ad
commit 34d89774b1
4 changed files with 19 additions and 5 deletions
+7 -1
View File
@@ -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
-1
View File
@@ -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 });