@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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. 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 = (testInfo === null || testInfo === void 0 ? void 0 : testInfo.project.name) ? `${testInfo.project.name}/${name}` : name;
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": "2.0.0",
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": ">=16.0.0"
42
+ "node": ">=18.0.0"
43
43
  },
44
44
  "dependencies": {
45
- "@argos-ci/browser": "1.5.0",
46
- "@argos-ci/core": "1.5.5",
47
- "@argos-ci/util": "1.2.1",
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": "1.0.12",
52
+ "@argos-ci/cli": "2.0.1",
53
53
  "@argos-ci/playwright": "workspace:.",
54
- "@playwright/test": "^1.42.1",
54
+ "@playwright/test": "^1.43.0",
55
55
  "@types/debug": "^4.1.12",
56
- "@types/node": "^16.0.0"
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": "4da90d82cfb93a1377497731164b9fbaeb9fb7f6"
64
+ "gitHead": "1d91294d32a09302aa8890807ddd810e14e9950b"
65
65
  }