Skip to content

Commit

Permalink
test(examples): do not fail tests if deque.com has violations (#1686)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stephenmathieson authored and straker committed Jul 9, 2019
1 parent 2390925 commit 2118360
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/examples/phantomjs/axe-phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
});

0 comments on commit 2118360

Please sign in to comment.