@penskemediacorp/backstopjs-config 0.5.0 → 0.5.4

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
- // ids.forEach( id => {
14
- // if ( null !== document.getElementById( id ) ) {
15
- // document.getElementById( id ).style.cssText = 'display: none !important';
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.5.0",
3
+ "version": "0.5.4",
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": "ae579c2215c1e32f409cc2901eb5c95b60904bb7"
30
+ "gitHead": "8d36aeb3dc6334c40f2e2c3a3ccac41312ef9d94"
31
31
  }