Skip to content

Commit

Permalink
fix(bypass): mark as needs review rather than failure (#2818)
Browse files Browse the repository at this point in the history
  • Loading branch information
straker authored Mar 1, 2021
1 parent 4bd0acf commit bb41b3e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions lib/rules/bypass.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"selector": "html",
"pageLevel": true,
"matches": "bypass-matches",
"reviewOnFail": true,
"tags": [
"cat.keyboard",
"wcag2a",
Expand Down
6 changes: 3 additions & 3 deletions test/integration/full/bypass/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ describe('bypass fail test', function() {
});
});

describe('violations', function() {
describe('incomplete', function() {
it('should find 1', function() {
assert.lengthOf(results.violations, 1);
assert.lengthOf(results.incomplete, 1);
});

it('should find html', function() {
assert.deepEqual(results.violations[0].nodes[0].target, ['html']);
assert.deepEqual(results.incomplete[0].nodes[0].target, ['html']);
});
});

Expand Down
6 changes: 3 additions & 3 deletions test/integration/full/bypass/header-iframe-fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ describe('bypass iframe test fail', function() {
});
});

describe('violations', function() {
describe('incomplete', function() {
it('should find 1', function() {
assert.lengthOf(results.violations[0].nodes, 1);
assert.lengthOf(results.incomplete[0].nodes, 1);
});

it('should find #frame1', function() {
assert.deepEqual(results.violations[0].nodes[0].target, ['#fail1']);
assert.deepEqual(results.incomplete[0].nodes[0].target, ['#fail1']);
});
});

Expand Down
4 changes: 2 additions & 2 deletions test/integration/full/bypass/header-iframe-pass.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ describe('bypass iframe test pass', function() {
});
});

describe('violations', function() {
describe('incomplete', function() {
it('should find none', function() {
assert.lengthOf(results.violations, 0);
assert.lengthOf(results.incomplete, 0);
});
});

Expand Down
4 changes: 2 additions & 2 deletions test/integration/full/bypass/pass-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ describe('bypass aria header test ' + window.location.pathname, function() {
});
});

describe('violations', function() {
describe('incomplete', function() {
it('should find none', function() {
assert.lengthOf(results.violations, 0);
assert.lengthOf(results.incomplete, 0);
});
});

Expand Down

0 comments on commit bb41b3e

Please sign in to comment.