testaro 32.0.4 → 32.0.6
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
CHANGED
package/procs/standardize.js
CHANGED
|
@@ -240,7 +240,7 @@ const doNuVal = (result, standardResult, docType) => {
|
|
|
240
240
|
location: {
|
|
241
241
|
doc: docType === 'pageContent' ? 'dom' : 'source',
|
|
242
242
|
type: 'line',
|
|
243
|
-
spec: item.lastLine.toString()
|
|
243
|
+
spec: item && item.lastLine && item.lastLine.toString() || ''
|
|
244
244
|
},
|
|
245
245
|
excerpt: cap(item.extract)
|
|
246
246
|
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"what": "validation of elements test",
|
|
4
4
|
"strict": true,
|
|
5
5
|
"timeLimit": 20,
|
|
6
|
+
"standard": "no",
|
|
6
7
|
"acts": [
|
|
7
8
|
{
|
|
8
9
|
"type": "launch",
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"stopOnFail": true,
|
|
17
18
|
"expect": [
|
|
18
19
|
[
|
|
19
|
-
"result.
|
|
20
|
+
"result.textNodes.data.nodeCount",
|
|
20
21
|
"=",
|
|
21
22
|
35
|
|
22
23
|
]
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"stopOnFail": true,
|
|
37
38
|
"expect": [
|
|
38
39
|
[
|
|
39
|
-
"result.
|
|
40
|
+
"result.textNodes.data.nodeCount",
|
|
40
41
|
"=",
|
|
41
42
|
2
|
|
42
43
|
]
|
|
@@ -56,12 +57,12 @@
|
|
|
56
57
|
"stopOnFail": true,
|
|
57
58
|
"expect": [
|
|
58
59
|
[
|
|
59
|
-
"result.
|
|
60
|
+
"result.textNodes.data.nodeCount",
|
|
60
61
|
"=",
|
|
61
62
|
2
|
|
62
63
|
],
|
|
63
64
|
[
|
|
64
|
-
"result.
|
|
65
|
+
"result.textNodes.data.items.0.text",
|
|
65
66
|
"=",
|
|
66
67
|
"Io alia"
|
|
67
68
|
]
|
|
@@ -81,73 +82,73 @@
|
|
|
81
82
|
"stopOnFail": true,
|
|
82
83
|
"expect": [
|
|
83
84
|
[
|
|
84
|
-
"result.
|
|
85
|
+
"result.textNodes.data.nodeCount",
|
|
85
86
|
"=",
|
|
86
87
|
2
|
|
87
88
|
],
|
|
88
89
|
[
|
|
89
|
-
"result.
|
|
90
|
+
"result.textNodes.data.items.0.text",
|
|
90
91
|
"=",
|
|
91
92
|
"This is the first button"
|
|
92
93
|
],
|
|
93
94
|
[
|
|
94
|
-
"result.
|
|
95
|
+
"result.textNodes.data.items.1.text",
|
|
95
96
|
"=",
|
|
96
97
|
"This is the second button"
|
|
97
98
|
],
|
|
98
99
|
[
|
|
99
|
-
"result.
|
|
100
|
+
"result.textNodes.data.items.0.ancestors.0.tagName",
|
|
100
101
|
"=",
|
|
101
102
|
"BUTTON"
|
|
102
103
|
],
|
|
103
104
|
[
|
|
104
|
-
"result.
|
|
105
|
+
"result.textNodes.data.items.1.ancestors.0.tagName",
|
|
105
106
|
"=",
|
|
106
107
|
"BUTTON"
|
|
107
108
|
],
|
|
108
109
|
[
|
|
109
|
-
"result.
|
|
110
|
+
"result.textNodes.data.items.0.ancestors.0.attributes.0.name",
|
|
110
111
|
"=",
|
|
111
112
|
"id"
|
|
112
113
|
],
|
|
113
114
|
[
|
|
114
|
-
"result.
|
|
115
|
+
"result.textNodes.data.items.0.ancestors.0.attributes.0.value",
|
|
115
116
|
"=",
|
|
116
117
|
"button0"
|
|
117
118
|
],
|
|
118
119
|
[
|
|
119
|
-
"result.
|
|
120
|
+
"result.textNodes.data.items.1.ancestors.0.attributes.1.name",
|
|
120
121
|
"=",
|
|
121
122
|
"aria-labelledby"
|
|
122
123
|
],
|
|
123
124
|
[
|
|
124
|
-
"result.
|
|
125
|
+
"result.textNodes.data.items.1.ancestors.0.attributes.1.value",
|
|
125
126
|
"=",
|
|
126
127
|
"button1Label"
|
|
127
128
|
],
|
|
128
129
|
[
|
|
129
|
-
"result.
|
|
130
|
+
"result.textNodes.data.items.0.ancestors.0.refLabels"
|
|
130
131
|
],
|
|
131
132
|
[
|
|
132
|
-
"result.
|
|
133
|
+
"result.textNodes.data.items.1.ancestors.0.refLabels.0",
|
|
133
134
|
"=",
|
|
134
135
|
"Click the second button."
|
|
135
136
|
],
|
|
136
137
|
[
|
|
137
|
-
"result.
|
|
138
|
+
"result.textNodes.data.items.0.ancestors.0.labels.0",
|
|
138
139
|
"=",
|
|
139
140
|
"Click the first button."
|
|
140
141
|
],
|
|
141
142
|
[
|
|
142
|
-
"result.
|
|
143
|
+
"result.textNodes.data.items.0.ancestors.0.labels.1",
|
|
143
144
|
"=",
|
|
144
145
|
"Did you click it?"
|
|
145
146
|
],
|
|
146
147
|
[
|
|
147
|
-
"result.
|
|
148
|
+
"result.textNodes.data.items.1.ancestors.0.labels"
|
|
148
149
|
],
|
|
149
150
|
[
|
|
150
|
-
"result.
|
|
151
|
+
"result.textNodes.data.items.0.ancestors.0.children"
|
|
151
152
|
]
|
|
152
153
|
],
|
|
153
154
|
"withItems": true,
|
|
@@ -165,52 +166,52 @@
|
|
|
165
166
|
"stopOnFail": true,
|
|
166
167
|
"expect": [
|
|
167
168
|
[
|
|
168
|
-
"result.
|
|
169
|
+
"result.textNodes.data.nodeCount",
|
|
169
170
|
"=",
|
|
170
171
|
1
|
|
171
172
|
],
|
|
172
173
|
[
|
|
173
|
-
"result.
|
|
174
|
+
"result.textNodes.data.items.0.text",
|
|
174
175
|
"=",
|
|
175
176
|
"Io tute alia"
|
|
176
177
|
],
|
|
177
178
|
[
|
|
178
|
-
"result.
|
|
179
|
+
"result.textNodes.data.items.0.ancestors.0.tagName",
|
|
179
180
|
"=",
|
|
180
181
|
"LI"
|
|
181
182
|
],
|
|
182
183
|
[
|
|
183
|
-
"result.
|
|
184
|
+
"result.textNodes.data.items.0.ancestors.1.tagName",
|
|
184
185
|
"=",
|
|
185
186
|
"UL"
|
|
186
187
|
],
|
|
187
188
|
[
|
|
188
|
-
"result.
|
|
189
|
+
"result.textNodes.data.items.0.ancestors.0.attributes.0.name",
|
|
189
190
|
"=",
|
|
190
191
|
"class"
|
|
191
192
|
],
|
|
192
193
|
[
|
|
193
|
-
"result.
|
|
194
|
+
"result.textNodes.data.items.0.ancestors.0.attributes.0.value",
|
|
194
195
|
"=",
|
|
195
196
|
"last"
|
|
196
197
|
],
|
|
197
198
|
[
|
|
198
|
-
"result.
|
|
199
|
+
"result.textNodes.data.items.0.ancestors.1.attributes.0.name",
|
|
199
200
|
"=",
|
|
200
201
|
"lang"
|
|
201
202
|
],
|
|
202
203
|
[
|
|
203
|
-
"result.
|
|
204
|
+
"result.textNodes.data.items.0.ancestors.1.attributes.0.value",
|
|
204
205
|
"=",
|
|
205
206
|
"eo"
|
|
206
207
|
],
|
|
207
208
|
[
|
|
208
|
-
"result.
|
|
209
|
+
"result.textNodes.data.items.0.ancestors.1.children.1.tagName",
|
|
209
210
|
"=",
|
|
210
211
|
"LI"
|
|
211
212
|
],
|
|
212
213
|
[
|
|
213
|
-
"result.
|
|
214
|
+
"result.textNodes.data.items.0.ancestors.1.children.2.attributes.1.name",
|
|
214
215
|
"=",
|
|
215
216
|
"hidden"
|
|
216
217
|
]
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"what": "validation of title test",
|
|
4
4
|
"strict": true,
|
|
5
5
|
"timeLimit": 20,
|
|
6
|
+
"standard": "no",
|
|
6
7
|
"acts": [
|
|
7
8
|
{
|
|
8
9
|
"type": "launch",
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"stopOnFail": true,
|
|
17
18
|
"expect": [
|
|
18
19
|
[
|
|
19
|
-
"result.
|
|
20
|
+
"result.title.data.title",
|
|
20
21
|
"=",
|
|
21
22
|
"Test page"
|
|
22
23
|
]
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"stopOnFail": true,
|
|
39
40
|
"expect": [
|
|
40
41
|
[
|
|
41
|
-
"result.
|
|
42
|
+
"result.title.data.title",
|
|
42
43
|
"=",
|
|
43
44
|
""
|
|
44
45
|
]
|