Skip to content
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

feat(rule): Adding landmark-is-unique rule #1394

Merged
merged 45 commits into from
Jun 5, 2019

Conversation

waabid
Copy link
Contributor

@waabid waabid commented Feb 28, 2019

The rule checks for whether rules are unique. The structure is:

matches + selectors: identify landmarks.
evaluate: passes all nodes and adds role/label data.
after: fails all landmarks that have duplicate roles and labels.

Linked issue: #866

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Has documentation updated, a DU ticket, or requires no documentation change
  • Includes new tests, or was unnecessary
  • Code is reviewed for security by: @WilcoFiers

@waabid waabid requested a review from a team as a code owner February 28, 2019 01:01
@CLAassistant
Copy link

CLAassistant commented Feb 28, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@dylanb dylanb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not reviewed the tests yet in detail because there are more changes needed.

  1. we need an iframe test
  2. We need a shadowDOM test
  3. please address the comments

lib/checks/landmarks/landmark-is-unique-after.js Outdated Show resolved Hide resolved
lib/rules/landmark-unique-matches.js Outdated Show resolved Hide resolved
lib/rules/landmark-unique-matches.js Outdated Show resolved Hide resolved
lib/rules/landmark-unique-matches.js Show resolved Hide resolved
jeeyyy
jeeyyy previously requested changes Mar 2, 2019
Copy link
Contributor

@jeeyyy jeeyyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left inline comments, yet to review the tests.

lib/checks/landmarks/landmark-is-unique-after.js Outdated Show resolved Hide resolved
lib/checks/landmarks/landmark-is-unique-after.js Outdated Show resolved Hide resolved
lib/checks/landmarks/landmark-is-unique-after.js Outdated Show resolved Hide resolved
lib/checks/landmarks/landmark-is-unique.js Outdated Show resolved Hide resolved
lib/rules/landmark-unique-matches.js Outdated Show resolved Hide resolved
lib/rules/landmark-unique-matches.js Outdated Show resolved Hide resolved
dylanb
dylanb previously requested changes Mar 4, 2019
test/rule-matches/landmark-unique-matches.js Outdated Show resolved Hide resolved
lib/rules/landmark-unique-matches.js Show resolved Hide resolved
@dylanb
Copy link
Contributor

dylanb commented Apr 12, 2019

@waabid @WilcoFiers how can I help move this PR along?

@WilcoFiers WilcoFiers self-requested a review April 16, 2019 16:45
@waabid
Copy link
Contributor Author

waabid commented Apr 18, 2019

@waabid @WilcoFiers how can I help move this PR along?

I've addressed all comments; had some tests breaking but fixed those. Now the test build is broken due to a dependency I believe.

@WilcoFiers WilcoFiers added this to the Axe-core 3.3 milestone Apr 23, 2019
@WilcoFiers
Copy link
Contributor

Closing this as a duplicate of #1394

@WilcoFiers WilcoFiers removed this from the Axe-core 3.3 milestone May 17, 2019
@WilcoFiers WilcoFiers closed this May 17, 2019
@WilcoFiers
Copy link
Contributor

Whoops, I meant the other way around.

@WilcoFiers WilcoFiers reopened this May 17, 2019
@straker straker dismissed WilcoFiers’s stale review May 23, 2019 20:59

Pr in working state, I believe changes were addressed

@straker straker self-assigned this May 24, 2019
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of minor points

lib/rules/landmark-unique-matches.js Show resolved Hide resolved
test/rule-matches/landmark-unique-matches.js Outdated Show resolved Hide resolved
test/rule-matches/landmark-unique-matches.js Outdated Show resolved Hide resolved
lib/checks/landmarks/landmark-is-unique.json Outdated Show resolved Hide resolved
lib/checks/landmarks/landmark-is-unique.json Outdated Show resolved Hide resolved
lib/checks/landmarks/landmark-is-unique.json Outdated Show resolved Hide resolved
@straker straker merged commit 0088e94 into dequelabs:develop Jun 5, 2019
@jeankaplansky jeankaplansky self-assigned this Jun 17, 2019
@jeankaplansky
Copy link
Contributor

Rule help for 3.3 required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants