@argos-ci/puppeteer 5.1.10 → 5.2.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.ts CHANGED
@@ -35,6 +35,10 @@ type ArgosScreenshotOptions = Omit<ScreenshotOptions, "encoding" | "type" | "omi
35
35
  * @default true
36
36
  */
37
37
  stabilize?: boolean | StabilizationPluginOptions;
38
+ /**
39
+ * Tag or array of tags to attach to the screenshot.
40
+ */
41
+ tag?: string | string[];
38
42
  };
39
43
  /**
40
44
  * Stabilize the UI and takes a screenshot of the application under test.
package/dist/index.js CHANGED
@@ -182,6 +182,9 @@ async function argosScreenshot(page, name, options = {}) {
182
182
  }
183
183
  };
184
184
  metadata.transient = {};
185
+ if (options?.tag) {
186
+ metadata.tags = Array.isArray(options.tag) ? options.tag : [options.tag];
187
+ }
185
188
  if (options?.threshold !== void 0) {
186
189
  validateThreshold(options.threshold);
187
190
  metadata.transient.threshold = options.threshold;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/puppeteer",
3
3
  "description": "Puppeteer SDK for visual testing with Argos.",
4
- "version": "5.1.10",
4
+ "version": "5.2.0",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -43,10 +43,10 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@argos-ci/browser": "5.1.2",
46
- "@argos-ci/util": "3.2.0"
46
+ "@argos-ci/util": "3.3.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@argos-ci/cli": "4.1.0",
49
+ "@argos-ci/cli": "4.1.2",
50
50
  "@types/jest": "^30.0.0",
51
51
  "@types/node": "catalog:",
52
52
  "expect-puppeteer": "^11.0.0",
@@ -66,5 +66,5 @@
66
66
  "check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
67
67
  "lint": "eslint ."
68
68
  },
69
- "gitHead": "6887164dc0ccd5b2a3dd1d7d9e778cdbbdd2d534"
69
+ "gitHead": "3e325792c50e801034c3248d94d7b1dc91bede71"
70
70
  }