Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 4c9886b

Browse files
JLLeitschuhsjelin
authored andcommitted
fix(Chrome Accessibility Plugin) No error context
If your tests fail because of StaleElementReferenceError then there is no context about where this is coming from. By having the failure be handled inside of the plugin then grunt can fail gracefully. Additionally, this provides context about where the error originated from. Fixes #2331
1 parent 6582f81 commit 4c9886b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/accessibility/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ function runChromeDevTools(context) {
178178
code: result.rule.code,
179179
list: trimText(text)
180180
};
181+
},
182+
function(reason){
183+
return {
184+
code: result.rule.code,
185+
list: reason
186+
};
181187
})
182188
);
183189
});

0 commit comments

Comments
 (0)