flexysnap 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/testUtils.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexysnap",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Flexible visual snapshot testing for Playwright, built for e-commerce.",
5
5
  "keywords": [
6
6
  "playwright",
package/src/testUtils.js CHANGED
@@ -9,10 +9,10 @@ async function callClosePopups(page) {
9
9
  async function gotoWithRetry(page, url) {
10
10
  try {
11
11
  logTimestamp('Loading ' + url);
12
- await page.goto(url, { timeout: 30_000, waitUntil: "domcontentloaded" });
12
+ await page.goto(url, { timeout: 30_000, waitUntil: "commit" });
13
13
  } catch (firstError) {
14
14
  logTimestamp('Retry loading ' + url);
15
- await page.goto(url, { timeout: 30_000, waitUntil: "domcontentloaded" });
15
+ await page.goto(url, { timeout: 30_000, waitUntil: "commit" });
16
16
  }
17
17
  await waitForCompleteLoad(page)
18
18
  }