regressify 1.2.10 → 1.2.12

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.
@@ -19,7 +19,7 @@ module.exports = async (browserContext, scenario) => {
19
19
  }
20
20
 
21
21
  // Add cookies to browser
22
- browserContext.addCookies(cookies);
22
+ await browserContext.addCookies(cookies);
23
23
 
24
24
  // console.log('Cookie state restored with:', JSON.stringify(cookies, null, 2));
25
25
  console.log(logPrefix + 'Cookie state restored for: ' + scenario.label);
@@ -14,7 +14,7 @@ module.exports = async (page, scenario, viewport, isReference, browserContext) =
14
14
  await require('./loadCookies')(browserContext, scenario);
15
15
 
16
16
  if (scenario.restore) {
17
- console.log(logPrefix + 'restore:', scenario.restore);
17
+ console.log('restore:', scenario.restore);
18
18
  const states = getStorageState(scenario.restore);
19
19
  await browserContext.storageState(states);
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regressify",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "Visual regression tests support",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",