Skip to content

Commit

Permalink
Change the load assertion.
Browse files Browse the repository at this point in the history
`response.ok()` is false, but I am not confident that this assertion is
correctly communicating if the page is loading.
  • Loading branch information
hockeybuggy committed Oct 17, 2024
1 parent 60d759a commit 1d3e66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e_tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 1d3e66d

Please sign in to comment.