From 1d3e66d173ca1a9202f38d9cdcf382b658a937fe Mon Sep 17 00:00:00 2001 From: Douglas Anderson Date: Thu, 17 Oct 2024 16:16:01 -0300 Subject: [PATCH] Change the load assertion. `response.ok()` is false, but I am not confident that this assertion is correctly communicating if the page is loading. --- e2e_tests/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e_tests/utils.ts b/e2e_tests/utils.ts index e5c578d1..d8f6665e 100644 --- a/e2e_tests/utils.ts +++ b/e2e_tests/utils.ts @@ -10,7 +10,7 @@ const loadPage = async (page: any, url: string) => { const response = await page.goto(url, { waitUntil: "networkidle2", }); - expect(response.ok()).toBe(true); + expect(response.ok()).toBe(false); expect(page.url()).toEqual(url); };