@siteimprove/alfa-cypress 0.82.1 → 0.84.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @siteimprove/alfa-cypress
2
2
 
3
+ ## 0.84.0
4
+
5
+ ### Patch Changes
6
+
7
+ - **Changed:** Update Alfa ([#393](https://github.com/Siteimprove/alfa-integrations/pull/393))
8
+
9
+ ## 0.83.0
10
+
11
+ ### Patch Changes
12
+
13
+ - **Changed:** Update Alfa to v0.115.1 ([#380](https://github.com/Siteimprove/alfa-integrations/pull/380))
14
+
3
15
  ## 0.82.1
4
16
 
5
17
  ## 0.82.0
package/dist/cypress.js CHANGED
@@ -19,16 +19,7 @@ export var Cypress;
19
19
  return (chai) => {
20
20
  chai.Assertion.addMethod("accessible", async function () {
21
21
  const input = await toPage(this._obj);
22
- const result = asserter
23
- .expect(input)
24
- .to.be.accessible()
25
- // Cypress has aversions towards promises and asynchronous functions.
26
- // We therefore have to synchronously unwrap the future, which it is
27
- // fortunately designed for. This _will_ panic if the value isn't
28
- // available, but this shouldn't happen in practice as the assertion
29
- // handlers can't be asynchronous either.
30
- // https://github.com/cypress-io/cypress/issues/4742
31
- .get();
22
+ const result = await asserter.expect(input).to.be.accessible();
32
23
  const message = result.isOk() ? result.get() : result.getErrUnsafe();
33
24
  this.assert(result.isOk(), `expected #{this} to be accessible${result.isErr() ? ` but ${message}` : ""}`, `expected #{this} to not be accessible${result.isOk() ? ` but ${message}` : ""}`,
34
25
  /* Expected */ true,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/package",
3
3
  "name": "@siteimprove/alfa-cypress",
4
4
  "homepage": "https://alfa.siteimprove.com",
5
- "version": "0.82.1",
5
+ "version": "0.84.0",
6
6
  "license": "MIT",
7
7
  "description": "Integrations and utilities for the Cypress testing framework",
8
8
  "repository": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "bugs": "https://github.com/siteimprove/alfa/issues",
14
14
  "engines": {
15
- "node": ">=20.0.0"
15
+ "node": ">=22.0.0"
16
16
  },
17
17
  "type": "module",
18
18
  "main": "dist/index.js",
@@ -25,28 +25,28 @@
25
25
  "test": "cypress run"
26
26
  },
27
27
  "dependencies": {
28
- "@siteimprove/alfa-act": "^0.114.3",
29
- "@siteimprove/alfa-assert": "^0.82.1",
30
- "@siteimprove/alfa-device": "^0.114.3",
31
- "@siteimprove/alfa-dom": "^0.114.3",
32
- "@siteimprove/alfa-formatter": "^0.82.1",
33
- "@siteimprove/alfa-formatter-earl": "^0.82.1",
34
- "@siteimprove/alfa-hash": "^0.114.3",
35
- "@siteimprove/alfa-http": "^0.114.3",
36
- "@siteimprove/alfa-mapper": "^0.114.3",
37
- "@siteimprove/alfa-url": "^0.114.3",
38
- "@siteimprove/alfa-web": "^0.114.3",
39
- "cypress": "^15.14.1"
28
+ "@siteimprove/alfa-act": "^0.117.0",
29
+ "@siteimprove/alfa-assert": "^0.84.0",
30
+ "@siteimprove/alfa-device": "^0.117.0",
31
+ "@siteimprove/alfa-dom": "^0.117.0",
32
+ "@siteimprove/alfa-formatter": "^0.84.0",
33
+ "@siteimprove/alfa-formatter-earl": "^0.84.0",
34
+ "@siteimprove/alfa-hash": "^0.117.0",
35
+ "@siteimprove/alfa-http": "^0.117.0",
36
+ "@siteimprove/alfa-mapper": "^0.117.0",
37
+ "@siteimprove/alfa-url": "^0.117.0",
38
+ "@siteimprove/alfa-web": "^0.117.0",
39
+ "cypress": "^15.16.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@siteimprove/alfa-act": "^0.114.3",
43
- "@siteimprove/alfa-device": "^0.114.3",
44
- "@siteimprove/alfa-dom": "^0.114.3",
45
- "@siteimprove/alfa-hash": "^0.114.3",
46
- "@siteimprove/alfa-http": "^0.114.3",
47
- "@siteimprove/alfa-mapper": "^0.114.3",
48
- "@siteimprove/alfa-url": "^0.114.3",
49
- "@siteimprove/alfa-web": "^0.114.3",
42
+ "@siteimprove/alfa-act": "^0.117.0",
43
+ "@siteimprove/alfa-device": "^0.117.0",
44
+ "@siteimprove/alfa-dom": "^0.117.0",
45
+ "@siteimprove/alfa-hash": "^0.117.0",
46
+ "@siteimprove/alfa-http": "^0.117.0",
47
+ "@siteimprove/alfa-mapper": "^0.117.0",
48
+ "@siteimprove/alfa-url": "^0.117.0",
49
+ "@siteimprove/alfa-web": "^0.117.0",
50
50
  "cypress": "^15.13.1"
51
51
  },
52
52
  "publishConfig": {