@argos-ci/playwright 6.3.0 → 6.3.2
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.cjs +23 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
async function argosAriaSnapshot(...args) {
|
|
2
|
+
const { argosAriaSnapshot } = await import("./index.js");
|
|
3
|
+
return argosAriaSnapshot(...args);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async function argosScreenshot(...args) {
|
|
2
7
|
const { argosScreenshot } = await import("./index.js");
|
|
3
8
|
return argosScreenshot(...args);
|
|
4
|
-
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function getCSPScriptHash(...args) {
|
|
12
|
+
// Loading ESM using require works in Node.js v22.13.0+
|
|
13
|
+
const { getCSPScriptHash } = require("./index.js");
|
|
14
|
+
return getCSPScriptHash(...args);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function DO_NOT_USE_setMetadataConfig(...args) {
|
|
18
|
+
// Loading ESM using require works in Node.js v22.13.0+
|
|
19
|
+
const { DO_NOT_USE_setMetadataConfig } = require("./index.js");
|
|
20
|
+
return DO_NOT_USE_setMetadataConfig(...args);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.argosAriaSnapshot = argosAriaSnapshot;
|
|
5
24
|
exports.argosScreenshot = argosScreenshot;
|
|
25
|
+
exports.getCSPScriptHash = getCSPScriptHash;
|
|
26
|
+
exports.DO_NOT_USE_setMetadataConfig = DO_NOT_USE_setMetadataConfig;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Page, Frame, Locator, ElementHandle, PageScreenshotOptions, LocatorScreenshotOptions } from '@playwright/test';
|
|
2
2
|
import { StabilizationPluginOptions, ViewportOption } from '@argos-ci/browser';
|
|
3
3
|
import { ScreenshotMetadata } from '@argos-ci/util';
|
|
4
4
|
|
package/dist/index.js
CHANGED
|
@@ -476,9 +476,9 @@ async function argosScreenshot(handler, name, options = {}) {
|
|
|
476
476
|
})
|
|
477
477
|
)
|
|
478
478
|
});
|
|
479
|
-
await waitForReadiness(handler,
|
|
479
|
+
await waitForReadiness(handler, context);
|
|
480
480
|
const afterEach = await beforeEach(handler, context);
|
|
481
|
-
await waitForReadiness(handler,
|
|
481
|
+
await waitForReadiness(handler, context);
|
|
482
482
|
const [snapshotPath] = await Promise.all([
|
|
483
483
|
(async () => {
|
|
484
484
|
if (!ariaSnapshot) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/playwright",
|
|
3
3
|
"description": "Playwright SDK for visual testing with Argos.",
|
|
4
|
-
"version": "6.3.
|
|
4
|
+
"version": "6.3.2",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"lint": "eslint .",
|
|
70
70
|
"test": "vitest src"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "ff3a8a63d4cd74afcaa5eca6c0d54d9bc7863a1d"
|
|
73
73
|
}
|