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

Fix accessibility tests πŸ‘¨πŸ»β€πŸ”§ #11

Merged
merged 6 commits into from
May 24, 2019

Conversation

ubbe-xyz
Copy link
Contributor

Summary

It seems that the latest patch of jest-axe throws unexpected errors around accessibility violations.

See this issue for more context on why.

I pinned jest-axe to 3.1.0 and brought back the tests we were skipping.
I'll open an issue to bring back jest-axe to ^3.*.* once they patch their patch πŸ‘πŸ» πŸš‘

Issue

Fixes #1

Lluis Agusti added 3 commits May 24, 2019 16:48
The latest patch of this library throws unexpected accesssibility violations around duplicated ID attributes on components.

See this issue for more context:
NickColley/jest-axe#56
We were skipping some tests are they were throwing unexpected errors related to accessibility.

See this issue for more context:
#1

After downgrading `jest-axe` they behave correctly. We'll open an issue once the correct patch for `jest-axe` comes in.
@ubbe-xyz ubbe-xyz force-pushed the test/1-fix-accessibility-tests branch from b75ee10 to e70b3c8 Compare May 24, 2019 14:50
@ubbe-xyz
Copy link
Contributor Author

ubbe-xyz commented May 24, 2019

Had a rebase issue and some changes are missing, pushing new commit soon πŸ˜ͺ

After rebasing against `master` we lost some changes. Bringing them back.
@poteirard
Copy link
Contributor

1__yarn_dev__node_

I'm getting this error πŸ€·β€β™‚

@ubbe-xyz
Copy link
Contributor Author

@poteirard ah I see many of the atoms are written in this fashion for some reason:

const SAtom = styled.div`
  /* ... */
`
const Atom = props => <SAtom {...props} />;

export default Atom;

Doesn't look too good as it seems it's done to workaround the Styleguidst warning above? πŸ€”

I'll revert the changes of the file as they're out of the scope of this PR, but maybe we can open an issue to dive deep into this warning?

@ubbe-xyz ubbe-xyz mentioned this pull request May 24, 2019
Copy link
Contributor

@poteirard poteirard left a comment

Choose a reason for hiding this comment

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

Thank you <3

@ubbe-xyz ubbe-xyz merged commit f0fd712 into master May 24, 2019
@ubbe-xyz ubbe-xyz deleted the test/1-fix-accessibility-tests branch May 24, 2019 21:53
@poteirard
Copy link
Contributor

πŸŽ‰ This PR is included in version 1.1.1 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

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.

Fix accessibility test
2 participants