@d-zero/a11y-check-scenarios 0.3.0 → 0.4.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/scenario.js +3 -1
- package/dist/scenario2.js +3 -1
- package/package.json +8 -5
package/dist/scenario.js
CHANGED
|
@@ -133,6 +133,8 @@ export default createScenario((options) => {
|
|
|
133
133
|
},
|
|
134
134
|
];
|
|
135
135
|
return {
|
|
136
|
+
modulePath: import.meta.url,
|
|
137
|
+
moduleParams: JSON.stringify(options ?? {}),
|
|
136
138
|
id: scenarioId,
|
|
137
139
|
async exec(page, sizeName, logger) {
|
|
138
140
|
// Wait Scroll End
|
|
@@ -184,7 +186,7 @@ export default createScenario((options) => {
|
|
|
184
186
|
scenarioId,
|
|
185
187
|
subKey: test.name,
|
|
186
188
|
id: '',
|
|
187
|
-
url:
|
|
189
|
+
url: page.url(),
|
|
188
190
|
tool: `a11y-check-scenario01: ${test.name}`,
|
|
189
191
|
timestamp: new Date(),
|
|
190
192
|
component: null,
|
package/dist/scenario2.js
CHANGED
|
@@ -5,6 +5,8 @@ const scenarioId = 'a11y-check/scenario02';
|
|
|
5
5
|
export default createScenario((options) => {
|
|
6
6
|
const cache = new Cache(scenarioId, options?.cacheDir);
|
|
7
7
|
return {
|
|
8
|
+
modulePath: import.meta.url,
|
|
9
|
+
moduleParams: JSON.stringify(options ?? {}),
|
|
8
10
|
id: scenarioId,
|
|
9
11
|
async exec(page, sizeName, logger) {
|
|
10
12
|
if (options?.cache === false) {
|
|
@@ -52,7 +54,7 @@ export default createScenario((options) => {
|
|
|
52
54
|
needAnalysis.push({
|
|
53
55
|
scenarioId,
|
|
54
56
|
id: '',
|
|
55
|
-
url:
|
|
57
|
+
url: page.url(),
|
|
56
58
|
tool: 'a11y-check-scenario02',
|
|
57
59
|
timestamp: new Date(),
|
|
58
60
|
component: selector,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/a11y-check-scenarios",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Accessibility Checker Scenario Collection",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
"clean": "tsc --build --clean"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@d-zero/a11y-check-core": "0.
|
|
28
|
-
"@d-zero/shared": "0.
|
|
27
|
+
"@d-zero/a11y-check-core": "0.5.0",
|
|
28
|
+
"@d-zero/shared": "0.9.0",
|
|
29
29
|
"ansi-colors": "4.1.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"
|
|
32
|
+
"puppeteer": "24.10.1"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"puppeteer": "24.10.1"
|
|
36
|
+
},
|
|
37
|
+
"gitHead": "04c6969564182c36ee38ef41e78130936dfa4863"
|
|
35
38
|
}
|