-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] Convert Drawer tests to testing-library #26837
Conversation
expect(wrapper.find(Modal).exists()).to.equal(true); | ||
}); | ||
|
||
it('should render Slide > Paper inside the Modal', () => { |
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.
duplicate test
it("should override Modal's BackdropTransitionDuration from prop when specified", () => { | ||
const testDuration = 335; | ||
const wrapper = mount( | ||
<Drawer BackdropTransitionDuration={testDuration}> |
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.
BackdropTransitionDuration
is no longer implemented. I can check when it got removed.
expect(root).to.have.tagName('div'); | ||
expect(root).to.have.class(classes.docked); | ||
}); | ||
|
||
it('should render div > Paper inside the div', () => { |
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.
Moved the core assertion to "hould render a div instead of a Modal when permanent"
Part of #22911