@argos-ci/playwright 7.1.2 → 7.1.3
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.mjs +6 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -127,8 +127,11 @@ const require = createRequire(import.meta.url);
|
|
|
127
127
|
*/
|
|
128
128
|
function checkIsUsingArgosReporter(testInfo) {
|
|
129
129
|
if (!testInfo) return false;
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
let reporterPath = null;
|
|
131
|
+
try {
|
|
132
|
+
reporterPath = require.resolve("@argos-ci/playwright/reporter");
|
|
133
|
+
} catch {}
|
|
134
|
+
return testInfo.config.reporter.some((reporter) => reporter[0].includes("@argos-ci/playwright") || reporterPath !== null && reporter[0] === reporterPath);
|
|
132
135
|
}
|
|
133
136
|
const PNG_EXTENSION = `.png`;
|
|
134
137
|
const ARIA_EXTENSION = `.aria.yml`;
|
|
@@ -195,7 +198,7 @@ async function setViewportSize(page, viewportSize) {
|
|
|
195
198
|
*/
|
|
196
199
|
function getSnapshotNames(name, testInfo) {
|
|
197
200
|
if (testInfo) {
|
|
198
|
-
const projectName = `${testInfo.project.name}/${name}
|
|
201
|
+
const projectName = testInfo.project.name ? `${testInfo.project.name}/${name}` : name;
|
|
199
202
|
if (testInfo.repeatEachIndex > 0) return {
|
|
200
203
|
name: `${projectName} repeat-${testInfo.repeatEachIndex}`,
|
|
201
204
|
baseName: projectName
|
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": "7.1.
|
|
4
|
+
"version": "7.1.3",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@argos-ci/browser": "6.2.0",
|
|
51
|
-
"@argos-ci/core": "6.
|
|
51
|
+
"@argos-ci/core": "6.4.0",
|
|
52
52
|
"@argos-ci/util": "4.0.0",
|
|
53
53
|
"chalk": "^5.6.2",
|
|
54
54
|
"debug": "^4.4.3"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"lint": "eslint .",
|
|
70
70
|
"test": "vitest src"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "ee2e5d3c14c83e07dfffa14ddc9f34f934f8c368"
|
|
73
73
|
}
|