-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Add defaultCategory to Phase 2 bulk-review rules #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rajathmr2000
wants to merge
16
commits into
main
Choose a base branch
from
feat/AXE-3625-phase-2-bulk-review
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7b2a6b3
AXE-3625: Add defaultCategory to Phase 2 bulk-review rules
rajathmr2000 9db3fa6
AXE-3625: Emit bulk-review visualHelperData for axe-core rules
rajathmr2000 d183a34
AXE-3625: Reuse shared duplicate-id check for the aria variant (DRY)
rajathmr2000 32c3c05
AXE-3625: Trim bulk-review code comments to one-liners
rajathmr2000 09aa4b0
AXE-3625: Bulk-review priority rules (axe-core subset)
rajathmr2000 afa8301
AXE-3625: Fix aria-valid-attr-value test + add submodule tag
rajathmr2000 a50068f
Update aria-valid-attr-value-evaluate.js
rajathmr2000 8cc8ca1
Update aria-valid-attr-value-evaluate.js
rajathmr2000 cf9afe0
Update aria-valid-attr-value-evaluate.js
rajathmr2000 c29f970
formated
rajathmr2000 256e077
AXE-3625: Fix prettier formatting on reviewPayload tag comment
rajathmr2000 d066b98
added changes
rajathmr2000 a99cb29
Update aria-valid-attr-value-evaluate.js
rajathmr2000 8eef0f2
Merge branch 'main' into feat/AXE-3625-bulk-review-priority
mattscepter 8f18c35
Merge branch 'main' into feat/AXE-3625-phase-2-bulk-review
rajathmr2000 54a082a
AXE-3625: Combine subset (#245) into superset (#244) as final axe-cor…
rajathmr2000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| describe('aria-valid-attr-value', () => { | ||
| 'use strict'; | ||
|
|
||
| const checkContext = axe.testUtils.MockCheckContext(); | ||
| const checkSetup = axe.testUtils.checkSetup; | ||
| const checkEvaluate = axe.testUtils.getCheckEvaluate('aria-valid-attr-value'); | ||
|
|
||
| afterEach(() => { | ||
| checkContext.reset(); | ||
| }); | ||
|
|
||
| it('emits the flagged aria-current attribute in reviewPayload.visualHelperData', () => { | ||
| const params = checkSetup( | ||
| '<div id="target" aria-current="active">Contents</div>' | ||
| ); | ||
| assert.isUndefined(checkEvaluate.apply(checkContext, params)); | ||
| assert.equal(checkContext._data.messageKey, 'ariaCurrent'); | ||
| assert.equal(checkContext._data.needsReview, 'aria-current="active"'); | ||
| assert.deepEqual(checkContext._data.reviewPayload, { | ||
| visualHelperData: { ariaAttribute: 'aria-current="active"' } | ||
| }); | ||
| }); | ||
|
|
||
| it('emits the flagged aria-labelledby attribute in reviewPayload.visualHelperData', () => { | ||
| const params = checkSetup( | ||
| '<div id="target" aria-labelledby="missing-id">Contents</div>' | ||
| ); | ||
| assert.isUndefined(checkEvaluate.apply(checkContext, params)); | ||
| assert.equal( | ||
| checkContext._data.needsReview, | ||
| 'aria-labelledby="missing-id"' | ||
| ); | ||
| assert.deepEqual(checkContext._data.reviewPayload, { | ||
| visualHelperData: { ariaAttribute: 'aria-labelledby="missing-id"' } | ||
| }); | ||
| }); | ||
|
|
||
| it('does not add a reviewPayload on the invalid-value (violation) path', () => { | ||
| const params = checkSetup( | ||
| '<div id="target" role="checkbox" aria-checked="foo">Contents</div>' | ||
| ); | ||
| assert.isFalse(checkEvaluate.apply(checkContext, params)); | ||
| assert.isArray(checkContext._data); | ||
| assert.notProperty(checkContext._data, 'reviewPayload'); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.