@siteimprove/alfa-cypress 0.83.0 → 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 +6 -0
- package/dist/cypress.js +1 -10
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
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.
|
|
5
|
+
"version": "0.84.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Integrations and utilities for the Cypress testing framework",
|
|
8
8
|
"repository": {
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
"test": "cypress run"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@siteimprove/alfa-act": "^0.
|
|
29
|
-
"@siteimprove/alfa-assert": "^0.
|
|
30
|
-
"@siteimprove/alfa-device": "^0.
|
|
31
|
-
"@siteimprove/alfa-dom": "^0.
|
|
32
|
-
"@siteimprove/alfa-formatter": "^0.
|
|
33
|
-
"@siteimprove/alfa-formatter-earl": "^0.
|
|
34
|
-
"@siteimprove/alfa-hash": "^0.
|
|
35
|
-
"@siteimprove/alfa-http": "^0.
|
|
36
|
-
"@siteimprove/alfa-mapper": "^0.
|
|
37
|
-
"@siteimprove/alfa-url": "^0.
|
|
38
|
-
"@siteimprove/alfa-web": "^0.
|
|
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
39
|
"cypress": "^15.16.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@siteimprove/alfa-act": "^0.
|
|
43
|
-
"@siteimprove/alfa-device": "^0.
|
|
44
|
-
"@siteimprove/alfa-dom": "^0.
|
|
45
|
-
"@siteimprove/alfa-hash": "^0.
|
|
46
|
-
"@siteimprove/alfa-http": "^0.
|
|
47
|
-
"@siteimprove/alfa-mapper": "^0.
|
|
48
|
-
"@siteimprove/alfa-url": "^0.
|
|
49
|
-
"@siteimprove/alfa-web": "^0.
|
|
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": {
|