-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add Modal and ModalDialog Tests #1121
Conversation
8b0c3af
to
dd120af
Compare
> | ||
Foo | ||
</ModalDialog>, | ||
{ container: document.body } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't remove thedocument.body
here because without it I can't find the button by the text, but I believe that when I rewrite the component I'll be able to capture by using test-id or something similar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great Job @thayannevls
5e7827d
020e21d
to
5e7827d
Compare
What is the purpose of this pull request?
#trivial: Add
Modal
andModalDialog
tests.Obs: Since Modal uses Portal, I had to change the container in all tests to work properly.
What problem is this solving?
#1083
How should this be manually tested?
yarn && yarn test
Types of changes