@shopware-ag/acceptance-test-suite 11.16.3 → 11.17.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/index.d.mts CHANGED
@@ -1161,6 +1161,7 @@ interface HelperFixtureTypes {
1161
1161
  isSaaS: boolean;
1162
1162
  features: FeaturesType;
1163
1163
  };
1164
+ HideElementsForScreenshot: (page: Page, selectors: string[]) => Promise<void>;
1164
1165
  }
1165
1166
 
1166
1167
  interface StoreBaseConfig {
package/dist/index.d.ts CHANGED
@@ -1161,6 +1161,7 @@ interface HelperFixtureTypes {
1161
1161
  isSaaS: boolean;
1162
1162
  features: FeaturesType;
1163
1163
  };
1164
+ HideElementsForScreenshot: (page: Page, selectors: string[]) => Promise<void>;
1164
1165
  }
1165
1166
 
1166
1167
  interface StoreBaseConfig {
package/dist/index.mjs CHANGED
@@ -3343,6 +3343,18 @@ const test$8 = test$f.extend({
3343
3343
  });
3344
3344
  },
3345
3345
  { scope: "worker" }
3346
+ ],
3347
+ HideElementsForScreenshot: [
3348
+ async ({}, use) => {
3349
+ const fn = async (page, selectors) => {
3350
+ if (!selectors.length)
3351
+ return;
3352
+ const css = selectors.map((selector) => `${selector} { display: none !important; }`).join("\n");
3353
+ await page.addStyleTag({ content: css });
3354
+ };
3355
+ await use(fn);
3356
+ },
3357
+ { scope: "worker" }
3346
3358
  ]
3347
3359
  });
3348
3360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.16.3",
3
+ "version": "11.17.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",