@percy/dom 1.29.0 → 1.29.1-beta.0
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.
- package/dist/bundle.js +10 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -657,9 +657,18 @@
|
|
|
657
657
|
} else if (ctx.clone.body.nextSibling) {
|
|
658
658
|
ctx.hints.add('DOM elements found outside </body>');
|
|
659
659
|
}
|
|
660
|
+
let cookies = '';
|
|
661
|
+
// Collecting cookies fail for about://blank page
|
|
662
|
+
try {
|
|
663
|
+
cookies = dom.cookie;
|
|
664
|
+
} catch (err) /* istanbul ignore next */ /* Tested this part in discovery.test.js with about:blank page */{
|
|
665
|
+
const errorMessage = `Could not capture cookies: ${err.message}`;
|
|
666
|
+
ctx.warnings.add(errorMessage);
|
|
667
|
+
console.error(errorMessage);
|
|
668
|
+
}
|
|
660
669
|
let result = {
|
|
661
670
|
html: serializeHTML(ctx),
|
|
662
|
-
cookies:
|
|
671
|
+
cookies: cookies,
|
|
663
672
|
warnings: Array.from(ctx.warnings),
|
|
664
673
|
resources: Array.from(ctx.resources),
|
|
665
674
|
hints: Array.from(ctx.hints)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/dom",
|
|
3
|
-
"version": "1.29.0",
|
|
3
|
+
"version": "1.29.1-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public",
|
|
12
|
-
"tag": "
|
|
12
|
+
"tag": "beta"
|
|
13
13
|
},
|
|
14
14
|
"main": "dist/bundle.js",
|
|
15
15
|
"browser": "dist/bundle.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"interactor.js": "^2.0.0-beta.10"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d325b7bbe56764dbde494477d1f4f3bfdc562d6e"
|
|
39
39
|
}
|