From 1980a310f25058ba613de7fd9ee8f5b7ad02b8f1 Mon Sep 17 00:00:00 2001 From: Stephen Mathieson Date: Mon, 8 Jul 2019 16:42:23 -0400 Subject: [PATCH] test(examples): do not fail tests if deque.com has violations This patch updates the `phantomjs` example test, making it not fail if an axe-core violation is found on deque.com. While it's extremely embarrassing that deque.com has violations, it's not something we control, so we shouldn't block merges based on it. --- doc/examples/phantomjs/axe-phantom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/examples/phantomjs/axe-phantom.js b/doc/examples/phantomjs/axe-phantom.js index 7039ec8e18..6dbcd9c329 100644 --- a/doc/examples/phantomjs/axe-phantom.js +++ b/doc/examples/phantomjs/axe-phantom.js @@ -46,6 +46,8 @@ page.open(args[1], function(status) { } } - phantom.exit(msg.violations.length); + // NOTE: to fail the test when violations are found, uncomment the line below. + // phantom.exit(msg.violations.length); + phantom.exit(0); }; });