@penskemediacorp/backstopjs-config 0.5.0 → 0.6.4-develop.17
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.
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
module.exports = async (page, scenario, vp) => {
|
|
2
2
|
console.log('SCENARIO > ' + scenario.label);
|
|
3
|
-
|
|
4
|
-
await page.evaluate(() => {
|
|
5
|
-
let ids = [];
|
|
6
|
-
|
|
7
|
-
// Leave commented until we are testing production screenshots.
|
|
8
|
-
// if ( typeof googletag !== typeof undefined ) {
|
|
9
|
-
// ids.push( ... googletag.pubads().getSlots().map( slot => slot.getSlotElementId() ) );
|
|
10
|
-
// ids.push( 'jpsuperheader', 'skin-ad-section' ); // IDs that are not part of googetag array
|
|
11
|
-
// }
|
|
12
3
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// });
|
|
4
|
+
await page.evaluate(() => {
|
|
5
|
+
document.querySelectorAll('.js-LarvaUiToggle-panel').forEach( el => {
|
|
6
|
+
el.classList.add( 'lrv-a-hidden' );
|
|
7
|
+
});
|
|
18
8
|
});
|
|
19
|
-
|
|
9
|
+
|
|
20
10
|
await require('./clickAndHoverHelper')(page, scenario);
|
|
21
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@penskemediacorp/backstopjs-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.4-develop.17+854eedf7",
|
|
4
4
|
"description": "Visual regression testing with Backstop JS.",
|
|
5
5
|
"author": "laras126 <laras126@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/penske-media-corp/pmc-larva#readme",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"chalk": "^4.1.0",
|
|
28
28
|
"webpack-merge": "^5.0.9"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "854eedf76f31c2ed8f5300329cc2242f936e69b8"
|
|
31
31
|
}
|