Skip to content

Commit f9a323f

Browse files
bodinarenmanucorporat
authored andcommitted
fix(e2e): wait for idle network (#1579)
1 parent 6db9c5d commit f9a323f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testing/puppeteer/puppeteer-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function e2eGoTo(page: pd.E2EPageInternal, url: string) {
120120

121121
const fullUrl = browserUrl + url.substring(1);
122122

123-
const rsp = await page._e2eGoto(fullUrl);
123+
const rsp = await page._e2eGoto(fullUrl, { waitUntil: 'networkidle0' });
124124

125125
if (!rsp.ok()) {
126126
await closePage(page);
@@ -180,7 +180,7 @@ async function e2eSetContent(page: pd.E2EPageInternal, html: string) {
180180
}
181181
});
182182

183-
const rsp = await page._e2eGoto(url);
183+
const rsp = await page._e2eGoto(url, { waitUntil: 'networkidle0' });
184184

185185
if (!rsp.ok()) {
186186
await closePage(page);

0 commit comments

Comments
 (0)