testaro 2.3.2 → 2.3.3
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/index.js +1 -1
- package/package.json +1 -1
- package/tests/alfa.js +1 -1
- package/tests/tabNav.js +1 -1
package/index.js
CHANGED
|
@@ -454,7 +454,7 @@ const goto = async (page, url, timeout, waitUntil, isStrict) => {
|
|
|
454
454
|
return 'error';
|
|
455
455
|
});
|
|
456
456
|
if (typeof response !== 'string') {
|
|
457
|
-
const httpStatus = response.
|
|
457
|
+
const httpStatus = response.statusCode;
|
|
458
458
|
if ([200, 304].includes(httpStatus) || url.startsWith('file:')) {
|
|
459
459
|
const actualURL = page.url();
|
|
460
460
|
if (isStrict && deSlash(actualURL) !== deSlash(url)) {
|
package/package.json
CHANGED
package/tests/alfa.js
CHANGED
|
@@ -24,7 +24,7 @@ exports.reporter = async page => {
|
|
|
24
24
|
return {result: {error: 'ERROR: navigation to URL timed out'}};
|
|
25
25
|
});
|
|
26
26
|
let ruleData = {};
|
|
27
|
-
if (response.
|
|
27
|
+
if (response.statusCode === 200) {
|
|
28
28
|
// Compile data on the rule IDs and summaries.
|
|
29
29
|
ruleData = await rulePage.evaluate(() => {
|
|
30
30
|
const rulePs = Array.from(document.querySelectorAll('p.h5'));
|
package/tests/tabNav.js
CHANGED
|
@@ -231,7 +231,7 @@ exports.reporter = async (page, withItems) => {
|
|
|
231
231
|
isCorrect = await testKey(
|
|
232
232
|
tabs, currentTab, 'End', 'end', tabCount - 1, isCorrect, itemData
|
|
233
233
|
);
|
|
234
|
-
// Update the tablist status (
|
|
234
|
+
// Update the tablist status (Node 14 does not support the ES 2021 &&= operator).
|
|
235
235
|
listIsCorrect = listIsCorrect && isCorrect;
|
|
236
236
|
// Increment the data.
|
|
237
237
|
data.totals.tabElements[isCorrect ? 'correct' : 'incorrect']++;
|