testaro 5.14.0 → 5.14.2
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/package.json +1 -1
- package/run.js +3 -0
- package/samples/scripts/tp16.json +191 -0
- package/tests/focVis.js +1 -1
- package/tests/linkTo.js +1 -1
- package/tests/miniText.js +1 -1
- package/validation/executors/test.js +3 -1
- package/validation/tests/scripts/focOp.json +1 -1
- package/validation/tests/scripts/focVis.json +26 -0
- package/validation/tests/scripts/linkTo.json +26 -0
- package/validation/tests/scripts/miniText.json +27 -0
- package/validation/tests/targets/focVis/index.html +23 -0
- package/validation/tests/targets/linkTo/index.html +15 -0
- package/validation/tests/targets/miniText/index.html +33 -0
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -1440,6 +1440,9 @@ const doActs = async (report, actIndex, page) => {
|
|
|
1440
1440
|
// Perform the remaining acts.
|
|
1441
1441
|
await doActs(report, actIndex + 1, page);
|
|
1442
1442
|
}
|
|
1443
|
+
else {
|
|
1444
|
+
await browserClose();
|
|
1445
|
+
}
|
|
1443
1446
|
};
|
|
1444
1447
|
// Performs the commands in a script.
|
|
1445
1448
|
const doScript = async (report) => {
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "tp15",
|
|
3
|
+
"what": "Alfa, Axe, Continuum, HTML CodeSniffer, IBM, Nu Html Checker, Tenon, WAVE, and 24 custom tests",
|
|
4
|
+
"strict": true,
|
|
5
|
+
"timeLimit": 500,
|
|
6
|
+
"commands": [
|
|
7
|
+
{
|
|
8
|
+
"type": "launch",
|
|
9
|
+
"which": "webkit",
|
|
10
|
+
"what": "Webkit browser"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "url",
|
|
14
|
+
"which": "https://*",
|
|
15
|
+
"what": "any page"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "tenonRequest",
|
|
19
|
+
"id": "a",
|
|
20
|
+
"withNewContent": true,
|
|
21
|
+
"what": "Tenon API version 2 test request"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "test",
|
|
25
|
+
"which": "motion",
|
|
26
|
+
"what": "spontaneous change of content; requires webkit",
|
|
27
|
+
"delay": 2500,
|
|
28
|
+
"interval": 2500,
|
|
29
|
+
"count": 5
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "launch",
|
|
33
|
+
"which": "chromium",
|
|
34
|
+
"what": "Chromium browser"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "url",
|
|
38
|
+
"which": "https://*",
|
|
39
|
+
"what": "any page"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "test",
|
|
43
|
+
"which": "bulk",
|
|
44
|
+
"what": "count of visible elements"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "test",
|
|
48
|
+
"which": "embAc",
|
|
49
|
+
"withItems": true,
|
|
50
|
+
"what": "active elements incorrectly embedded in each other"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "test",
|
|
54
|
+
"which": "focAll",
|
|
55
|
+
"what": "Tab-focusability"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "test",
|
|
59
|
+
"which": "focInd",
|
|
60
|
+
"revealAll": false,
|
|
61
|
+
"allowedDelay": 250,
|
|
62
|
+
"withItems": true,
|
|
63
|
+
"what": "focus indicators"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "test",
|
|
67
|
+
"which": "focOp",
|
|
68
|
+
"withItems": true,
|
|
69
|
+
"what": "focusability and operability of elements"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "test",
|
|
73
|
+
"which": "focVis",
|
|
74
|
+
"withItems": true,
|
|
75
|
+
"what": "links outside display when focused"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "test",
|
|
79
|
+
"which": "hover",
|
|
80
|
+
"headSize": 40,
|
|
81
|
+
"headSampleSize": 20,
|
|
82
|
+
"tailSampleSize": 15,
|
|
83
|
+
"withItems": true,
|
|
84
|
+
"what": "hover impacts"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "test",
|
|
88
|
+
"which": "labClash",
|
|
89
|
+
"withItems": true,
|
|
90
|
+
"what": "unlabeled and mislabeled form controls"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "test",
|
|
94
|
+
"which": "linkTo",
|
|
95
|
+
"withItems": true,
|
|
96
|
+
"what": "links without destinations"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "test",
|
|
100
|
+
"which": "linkUl",
|
|
101
|
+
"withItems": true,
|
|
102
|
+
"what": "underlining of inline links"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "test",
|
|
106
|
+
"which": "miniText",
|
|
107
|
+
"withItems": true,
|
|
108
|
+
"what": "small text"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "test",
|
|
112
|
+
"which": "menuNav",
|
|
113
|
+
"withItems": true,
|
|
114
|
+
"what": "keyboard navigation within true-focus menus"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "test",
|
|
118
|
+
"which": "radioSet",
|
|
119
|
+
"withItems": true,
|
|
120
|
+
"what": "grouping of radio buttons in fieldsets"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "test",
|
|
124
|
+
"which": "role",
|
|
125
|
+
"what": "validity and necessity of role assignments"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "test",
|
|
129
|
+
"which": "styleDiff",
|
|
130
|
+
"withItems": true,
|
|
131
|
+
"what": "style consistency of headings, buttons, and links"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "test",
|
|
135
|
+
"which": "tabNav",
|
|
136
|
+
"withItems": true,
|
|
137
|
+
"what": "keyboard navigation within tab lists"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "test",
|
|
141
|
+
"which": "zIndex",
|
|
142
|
+
"withItems": true,
|
|
143
|
+
"what": "elements with non-auto z indexes"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "test",
|
|
147
|
+
"which": "alfa",
|
|
148
|
+
"what": "Siteimprove alfa"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": "test",
|
|
152
|
+
"which": "axe",
|
|
153
|
+
"detailLevel": 2,
|
|
154
|
+
"rules": [],
|
|
155
|
+
"what": "Axe core, all rules"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "test",
|
|
159
|
+
"which": "continuum",
|
|
160
|
+
"what": "Continuum"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "test",
|
|
164
|
+
"which": "htmlcs",
|
|
165
|
+
"what": "HTML CodeSniffer"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "test",
|
|
169
|
+
"which": "ibm",
|
|
170
|
+
"withItems": true,
|
|
171
|
+
"what": "IBM Accessibility Checker, with page content and again with URL"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "test",
|
|
175
|
+
"which": "nuVal",
|
|
176
|
+
"what": "Nu Html Checker"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "test",
|
|
180
|
+
"which": "wave",
|
|
181
|
+
"reportType": 4,
|
|
182
|
+
"what": "WAVE, report-type 4"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "test",
|
|
186
|
+
"which": "tenon",
|
|
187
|
+
"id": "a",
|
|
188
|
+
"what": "Tenon API version 2 result retrieval"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
package/tests/focVis.js
CHANGED
package/tests/linkTo.js
CHANGED
package/tests/miniText.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"what": "validation of focVis test",
|
|
3
|
+
"strict": true,
|
|
4
|
+
"commands": [
|
|
5
|
+
{
|
|
6
|
+
"type": "launch",
|
|
7
|
+
"which": "chromium",
|
|
8
|
+
"what": "usual browser"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "url",
|
|
12
|
+
"which": "__targets__/focVis/index.html",
|
|
13
|
+
"what": "page with links inside and outside the viewport"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "test",
|
|
17
|
+
"which": "focVis",
|
|
18
|
+
"what": "off-display focused links",
|
|
19
|
+
"withItems": true,
|
|
20
|
+
"expect": [
|
|
21
|
+
["total", "=", 1],
|
|
22
|
+
["items.0", "=", "Basque information"]
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"what": "validation of linkTo test",
|
|
3
|
+
"strict": true,
|
|
4
|
+
"commands": [
|
|
5
|
+
{
|
|
6
|
+
"type": "launch",
|
|
7
|
+
"which": "chromium",
|
|
8
|
+
"what": "usual browser"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "url",
|
|
12
|
+
"which": "__targets__/linkTo/index.html",
|
|
13
|
+
"what": "page with links with and without destinations"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "test",
|
|
17
|
+
"which": "linkTo",
|
|
18
|
+
"what": "links without destinations",
|
|
19
|
+
"withItems": true,
|
|
20
|
+
"expect": [
|
|
21
|
+
["total", "=", 1],
|
|
22
|
+
["items.0", "=", "nothing at all"]
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"what": "validation of miniText test",
|
|
3
|
+
"strict": true,
|
|
4
|
+
"commands": [
|
|
5
|
+
{
|
|
6
|
+
"type": "launch",
|
|
7
|
+
"which": "chromium",
|
|
8
|
+
"what": "usual browser"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "url",
|
|
12
|
+
"which": "__targets__/miniText/index.html",
|
|
13
|
+
"what": "page with text in various font sizes"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "test",
|
|
17
|
+
"which": "miniText",
|
|
18
|
+
"what": "small text",
|
|
19
|
+
"withItems": true,
|
|
20
|
+
"expect": [
|
|
21
|
+
["total", "=", 3],
|
|
22
|
+
["items.0", "i", "rem"],
|
|
23
|
+
["items.2", "i", "named"]
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-US">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Page with links within and outside the viewport</title>
|
|
6
|
+
<meta name="description" content="tester">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<style>
|
|
9
|
+
.away {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: -10rem;
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<main>
|
|
17
|
+
<h1>Page with links within and outside the viewport</h1>
|
|
18
|
+
<p>This page contains a normal link to <a href="https://en.wikipedia.org">English information</a>.</p>
|
|
19
|
+
<p>However, there is another link that you cannot see, because it is outside the viewport.</p>
|
|
20
|
+
<p><a class="away" href="https://eus.wikipedia.org">Basque information</a></p>
|
|
21
|
+
</main>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-US">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Page with links with and without destinations</title>
|
|
6
|
+
<meta name="description" content="tester">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<main>
|
|
11
|
+
<h1>Page with links with and without destinations</h1>
|
|
12
|
+
<p>This page contains a normal link to <a href="https://en.wikipedia.org">English information</a> and a deviant link to <a>nothing at all</a>.</p>
|
|
13
|
+
</main>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-US">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Page with small text</title>
|
|
6
|
+
<meta name="description" content="tester">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<style>
|
|
9
|
+
.maxi {
|
|
10
|
+
font-size: x-large;
|
|
11
|
+
}
|
|
12
|
+
.mini {
|
|
13
|
+
font-size: 0.5rem;
|
|
14
|
+
}
|
|
15
|
+
.miniPx {
|
|
16
|
+
font-size: 7px;
|
|
17
|
+
}
|
|
18
|
+
.miniWord {
|
|
19
|
+
font-size: xx-small;
|
|
20
|
+
}
|
|
21
|
+
</style>
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
<main>
|
|
25
|
+
<h1>Page with small text</h1>
|
|
26
|
+
<p>This text has the default font size.</p>
|
|
27
|
+
<p class="mini">This text is small, defined in rem.</p>
|
|
28
|
+
<p class="miniPx">This text is small, defined in px.</p>
|
|
29
|
+
<p class="miniWord">This text is small, defined with a named constant.</p>
|
|
30
|
+
<p class="maxi">This text is extra-large.</p>
|
|
31
|
+
</main>
|
|
32
|
+
</body>
|
|
33
|
+
</html>
|