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(wdio): add wdio package for a11y testing with browsers #21

Merged
merged 92 commits into from
Jul 28, 2020

Conversation

mohanraj-r
Copy link
Contributor

@mohanraj-r mohanraj-r commented Jun 17, 2020

@sa11y/wdio

  • Add a @sa11y/wdio package that provides a assertAccessible() API that can be used with WebdriverIO to check accessibility of web pages rendered in browsers.
  • While existing @sa11y packages provide support for unit testing - with virtual jsdom, this package provides testing accessibility in a real browser such as google chrome
    • while reusing the existing @sa11y packages as much as possible

Other changes in this PR

Couldn't do a successful git rebase, hence this PR shows commits that are already in master - though they are not reflected in the diff.

  • preset-rules:
    • add a full ruleset with all rules from axe
    • rename extended ruleset to recommended, recommended preset rule to base
  • Fixes to formatting - w.r.t to handling undefined (fix(format): error when expect(elem).not.toBeAccessible is called on an elem with no a11y issues #18)
  • Pin axe-core, which is our primary dependency, so that we can be sure that users are using the same version of axe-core that we have tested with
  • Updates, additions to docs
    • fix all Readme headings and structure for consistency
  • Bump versions
    • changed release label from alpha to beta for all packages except wdio

TODO

Post merge

Mohan Raj Rajamanickam added 30 commits June 2, 2020 20:37
# Conflicts:
#	package.json
# Conflicts:
#	package.json
#	yarn.lock
@mohanraj-r
Copy link
Contributor Author

@cordeliadillon This PR contains the changes to ruleset names as discussed.

Copy link

@trevor-bliss trevor-bliss left a comment

Choose a reason for hiding this comment

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

Nice! Really only looked at the wdio changes btw...

packages/wdio/src/wdio.ts Show resolved Hide resolved
packages/wdio/src/wdio.ts Outdated Show resolved Hide resolved
packages/wdio/package.json Outdated Show resolved Hide resolved
packages/wdio/package.json Show resolved Hide resolved
Copy link
Contributor Author

@mohanraj-r mohanraj-r left a comment

Choose a reason for hiding this comment

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

Thanks for the review @trevor-bliss

packages/wdio/src/wdio.ts Outdated Show resolved Hide resolved
packages/wdio/src/wdio.ts Show resolved Hide resolved
packages/wdio/package.json Show resolved Hide resolved
packages/wdio/package.json Outdated Show resolved Hide resolved
@cordeliadillon
Copy link
Contributor

All the preset-rule renaming work looks good to me!

@mohanraj-r
Copy link
Contributor Author

All the preset-rule renaming work looks good to me!

Thanks for the review @cordeliadillon 👍

@mohanraj-r mohanraj-r merged commit 1ac7486 into salesforce:master Jul 28, 2020
@mohanraj-r mohanraj-r deleted the wdio branch July 28, 2020 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants