@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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +12 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
|