@argos-ci/cypress 1.0.2 → 1.1.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.
Files changed (2) hide show
  1. package/dist/support.mjs +4 -1
  2. package/package.json +5 -4
package/dist/support.mjs CHANGED
@@ -33,9 +33,12 @@ Cypress.Commands.add("argosScreenshot", {
33
33
  message: name
34
34
  });
35
35
  injectArgos();
36
+ const fullPage = !options.capture || options.capture === "fullPage";
36
37
  cy.window({
37
38
  log: false
38
- }).then((window)=>window.__ARGOS__.prepareForScreenshot());
39
+ }).then((window)=>window.__ARGOS__.prepareForScreenshot({
40
+ fullPage
41
+ }));
39
42
  function stabilizeAndScreenshot(name) {
40
43
  cy.waitUntil(()=>cy.window({
41
44
  log: false
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/cypress",
3
3
  "description": "Visual testing solution to avoid visual regression. Cypress commands and utilities for Argos visual testing.",
4
- "version": "1.0.2",
4
+ "version": "1.1.0",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -31,11 +31,12 @@
31
31
  },
32
32
  "./package.json": "./package.json"
33
33
  },
34
+ "types": "./dist/support.d.ts",
34
35
  "engines": {
35
36
  "node": ">=16.0.0"
36
37
  },
37
38
  "dependencies": {
38
- "@argos-ci/browser": "1.0.0",
39
+ "@argos-ci/browser": "1.1.0",
39
40
  "@argos-ci/util": "1.1.0",
40
41
  "cypress-wait-until": "^1.7.2"
41
42
  },
@@ -43,7 +44,7 @@
43
44
  "cypress": "^12.0.0 || ^13.0.0"
44
45
  },
45
46
  "devDependencies": {
46
- "@argos-ci/cli": "1.0.2",
47
+ "@argos-ci/cli": "1.0.3",
47
48
  "@argos-ci/cypress": "workspace:.",
48
49
  "@types/node": "^16.0.0",
49
50
  "cypress": "^13.3.0",
@@ -57,5 +58,5 @@
57
58
  "argos-upload": "pnpm exec argos upload cypress/screenshots --build-name \"argos-cypress-e2e-node-$NODE_VERSION-$OS\"",
58
59
  "e2e": "pnpm run test && pnpm run argos-upload"
59
60
  },
60
- "gitHead": "47a939474ca0c0d55ca5360dcaa5f8912547ed76"
61
+ "gitHead": "0cdfcea5b55b54a44228d03919168b25e5dec70f"
61
62
  }