Comparing version 2.0.1 to 2.1.0
@@ -148,6 +148,12 @@ const crypto = require('crypto'); | ||
let globalCSS = this.allCssBlocks.map(block => block.content).join('\n'); | ||
const globalCSS = this.allCssBlocks.map(block => ({ | ||
id: block.key, | ||
conditional: true, | ||
css: block.content, | ||
})); | ||
for (const url of uniqueUrls) { | ||
if (/^\/_external\//.test(url.name) && url.name !== url.url) { | ||
globalCSS = globalCSS.split(url.url).join(url.name); | ||
for (const block of globalCSS) { | ||
block.css = block.css.split(url.url).join(url.name); | ||
} | ||
this.snapshots.forEach(snapshot => { | ||
@@ -230,2 +236,3 @@ snapshot.html = snapshot.html.split(url.url).join(url.name); | ||
targets, | ||
stylesheets: cssBlocks.map(b => b.key), | ||
htmlElementAttrs, | ||
@@ -232,0 +239,0 @@ bodyElementAttrs, |
{ | ||
"name": "happo-e2e", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Helpers for e2e integrations with Happo", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
769863
2887