diff --git a/test/e2e/home.spec.ts b/test/e2e/home.spec.ts
index 3d6c2e24..5130f5b1 100644
--- a/test/e2e/home.spec.ts
+++ b/test/e2e/home.spec.ts
@@ -5,6 +5,12 @@ test.describe("home page", () => {
test("shows home page", async ({ page, takeScreenshot }) => {
await navigate(page, "/", {waitUntil: "load"});
+ const $searchInput = page.getByTestId("search-input");
+ const $networks = page.getByTestId("networks");
+
+ await expect($searchInput).toBeVisible();
+ await expect($networks).toBeVisible();
+
await takeScreenshot("home");
});
});
diff --git a/test/utils/navigate.ts b/test/utils/navigate.ts
index f3719cc6..950503c2 100644
--- a/test/utils/navigate.ts
+++ b/test/utils/navigate.ts
@@ -13,6 +13,10 @@ const customEvents = ["data-loaded", "chart-finished"];
export async function navigate(page: Page, url: string, options: GotoOptions = {}) {
let customEvent: string|undefined = undefined;
+ await page.goto(url, {waitUntil: "commit"});
+ await page.evaluate(() => localStorage.setItem("skip-runtime-metadata-preload", "true"));
+ await page.evaluate(() => localStorage.setItem("runtime-metadata-preloaded", "true"));
+
if (options.waitUntil && customEvents.includes(options.waitUntil)) {
customEvent = options.waitUntil;
options.waitUntil = "domcontentloaded";