From e484743c7d8bdf5b913f4a2acc8673327973a1ce Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Fri, 26 Apr 2024 17:23:26 +0200 Subject: [PATCH] Fix localStorage --- webapp/e2e/steps/play-calculator.steps.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/e2e/steps/play-calculator.steps.js b/webapp/e2e/steps/play-calculator.steps.js index d5a59141..3758a1cf 100644 --- a/webapp/e2e/steps/play-calculator.steps.js +++ b/webapp/e2e/steps/play-calculator.steps.js @@ -15,6 +15,11 @@ defineFeature(feature, (test) => { : await puppeteer.launch({ headless: "new", slowMo: 100 }); page = await browser.newPage(); setDefaultOptions({ timeout: 10000 }); + + await page.goto("http://localhost:3000/", { + waitUntil: "networkidle0", + }); + await page.evaluate(() => { localStorage.setItem("username","testuser"); localStorage.setItem("token","abcdefg");