@argos-ci/playwright 2.0.0 → 3.0.1
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 +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -181,7 +181,7 @@ async function argosScreenshot(page, name, options = {}) {
|
|
|
181
181
|
const stabilizeAndScreenshot = async (name)=>{
|
|
182
182
|
await page.waitForFunction(()=>window.__ARGOS__.waitForStability());
|
|
183
183
|
const metadata = await collectMetadata(testInfo);
|
|
184
|
-
const nameInProject =
|
|
184
|
+
const nameInProject = testInfo?.project.name ? `${testInfo.project.name}/${name}` : name;
|
|
185
185
|
const screenshotPath = useArgosReporter && testInfo ? testInfo.outputPath("argos", `${nameInProject}.png`) : resolve(screenshotFolder, `${nameInProject}.png`);
|
|
186
186
|
const dir = dirname(screenshotPath);
|
|
187
187
|
if (dir !== screenshotFolder) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/playwright",
|
|
3
3
|
"description": "Visual testing solution to avoid visual regression. Playwright commands and utilities for Argos visual testing.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
|
-
"node": ">=
|
|
42
|
+
"node": ">=18.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@argos-ci/browser": "1.
|
|
46
|
-
"@argos-ci/core": "1.
|
|
47
|
-
"@argos-ci/util": "
|
|
45
|
+
"@argos-ci/browser": "2.1.0",
|
|
46
|
+
"@argos-ci/core": "2.1.0",
|
|
47
|
+
"@argos-ci/util": "2.0.0",
|
|
48
48
|
"chalk": "^5.3.0",
|
|
49
49
|
"debug": "^4.3.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@argos-ci/cli": "
|
|
52
|
+
"@argos-ci/cli": "2.0.1",
|
|
53
53
|
"@argos-ci/playwright": "workspace:.",
|
|
54
|
-
"@playwright/test": "^1.
|
|
54
|
+
"@playwright/test": "^1.43.0",
|
|
55
55
|
"@types/debug": "^4.1.12",
|
|
56
|
-
"@types/node": "^
|
|
56
|
+
"@types/node": "^18.0.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"prebuild": "rm -rf dist",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"test": "pnpm exec playwright test",
|
|
62
62
|
"e2e": "UPLOAD_TO_ARGOS=true pnpm run test"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "1d91294d32a09302aa8890807ddd810e14e9950b"
|
|
65
65
|
}
|