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

chore(store-ui): Add a11y tests for all atoms #988

Merged
merged 3 commits into from
Oct 15, 2021

Conversation

igorbrasileiro
Copy link
Contributor

What's the purpose of this pull request?

How it works?

How to test it?

References

@igorbrasileiro igorbrasileiro requested a review from a team as a code owner October 13, 2021 21:10
@netlify
Copy link

netlify bot commented Oct 13, 2021

✔️ Deploy Preview for storeui ready!

🔨 Explore the source changes: 441a4b3

🔍 Inspect the deploy log: https://app.netlify.com/sites/storeui/deploys/616885905dbbad0008bedaf6

😎 Browse the preview: https://deploy-preview-988--storeui.netlify.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 13, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 441a4b3:

Sandbox Source
Store UI Typescript Configuration

Copy link
Member

@victorhmp victorhmp left a comment

Choose a reason for hiding this comment

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

Awesome work and initiative! 👏🏻 👏🏻 👏🏻

packages/store-ui/src/atoms/List/List.test.tsx Outdated Show resolved Hide resolved
packages/store-ui/src/atoms/List/List.test.tsx Outdated Show resolved Hide resolved
packages/store-ui/src/atoms/List/List.test.tsx Outdated Show resolved Hide resolved
packages/store-ui/src/atoms/List/List.test.tsx Outdated Show resolved Hide resolved
emersonlaurentino and others added 2 commits October 14, 2021 13:39
Co-authored-by: Victor Hugo Miranda Pinto <victor2142@gmail.com>

await act(async () => {
expect(await axe(getByTestId('store-popover'))).toHaveNoViolations()
})
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about adding a click event after to test it also?

Copy link
Contributor Author

@igorbrasileiro igorbrasileiro Oct 15, 2021

Choose a reason for hiding this comment

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

The popover is always present so that the click event won't change the popover behavior.

@igorbrasileiro igorbrasileiro merged commit db01876 into master Oct 15, 2021
@igorbrasileiro igorbrasileiro deleted the chore/a11y-tests branch October 15, 2021 15:38
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.

4 participants