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

test(toast): Write test for Toasts #584

Merged
merged 18 commits into from
Apr 23, 2020
Merged

test(toast): Write test for Toasts #584

merged 18 commits into from
Apr 23, 2020

Conversation

mannycarrera4
Copy link
Contributor

@mannycarrera4 mannycarrera4 commented Apr 16, 2020

Summary

We hadn't written test for Toast yet. While writing some test, I noticed that adding some accessibility to the toast helped with the test. There's still some accessibility to add to the toast.

@cypress
Copy link

cypress bot commented Apr 20, 2020



Test summary

206 0 0 0


Run details

Project canvas-kit
Status Passed
Commit 821a082 ℹ️
Started Apr 23, 2020 8:41 PM
Ended Apr 23, 2020 8:43 PM
Duration 02:32 💡
OS Linux Ubuntu Linux - 18.04
Browser Electron 78

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@mannycarrera4 mannycarrera4 added the ready for review Code is ready for review label Apr 20, 2020
Copy link
Member

@alanbsmith alanbsmith left a comment

Choose a reason for hiding this comment

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

Solid work, @mannycarrera4! I had a few comments and questions, but nothing that would hold this up. The only thing I might change is adding a data-testid on the button instead of using an aria-label for the reasons you mentioned.

cypress/integration/Toast.spec.ts Outdated Show resolved Hide resolved
cypress/integration/Toast.spec.ts Outdated Show resolved Hide resolved
modules/toast/react/stories/stories.tsx Outdated Show resolved Hide resolved
modules/toast/react/lib/Toast.tsx Outdated Show resolved Hide resolved
modules/toast/react/lib/Toast.tsx Outdated Show resolved Hide resolved
@lychyi lychyi mentioned this pull request Apr 21, 2020
31 tasks
modules/toast/react/lib/Toast.tsx Outdated Show resolved Hide resolved
modules/toast/react/lib/Toast.tsx Outdated Show resolved Hide resolved
modules/toast/react/lib/Toast.tsx Outdated Show resolved Hide resolved
modules/toast/react/spec/Toast.spec.tsx Outdated Show resolved Hide resolved
modules/toast/react/stories/stories.tsx Outdated Show resolved Hide resolved
modules/toast/react/stories/stories_visualTesting.tsx Outdated Show resolved Hide resolved
modules/toast/react/stories/stories_visualTesting.tsx Outdated Show resolved Hide resolved
@mannycarrera4 mannycarrera4 removed the ready for review Code is ready for review label Apr 22, 2020
@mannycarrera4 mannycarrera4 added the ready for review Code is ready for review label Apr 22, 2020
@lychyi lychyi linked an issue Apr 22, 2020 that may be closed by this pull request
Copy link
Contributor

@anicholls anicholls left a comment

Choose a reason for hiding this comment

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

Nice work 🎉

One last little fix then feel free to merge

modules/toast/react/stories/stories_visualTesting.tsx Outdated Show resolved Hide resolved
@mannycarrera4 mannycarrera4 merged commit 3e5e595 into Workday:master Apr 23, 2020
This was referenced May 5, 2020
@jaclynjessup jaclynjessup removed testing ready for review Code is ready for review labels Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Testing for Toast
4 participants