-
-
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] Remove data-mui-test from tests #23498
Conversation
@@ -268,12 +268,12 @@ describe('<DateRangePicker />', () => { | |||
open | |||
renderInput={defaultRangeRenderInput} | |||
onChange={() => {}} | |||
renderDay={(day) => <div key={String(day)} data-mui-test="renderDayCalled" />} | |||
renderDay={(day) => <div key={String(day)} data-testid="renderDayCalled" />} |
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.
Only change touching pickers since I didn't need to alter pickers implementation
@@ -27,7 +27,7 @@ describe('<Backdrop />', () => { | |||
|
|||
it('should render a backdrop div with content of nested children', () => { | |||
const { container } = render( | |||
<Backdrop open className="woofBackdrop"> |
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.
Drive-by removal of unused props
expect(onClose.callCount).to.equal(0); | ||
}); | ||
|
||
it('should spread custom props on the modal root node', () => { |
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.
drive-by removal of a duplicate test (describeConformance covers this case).
@@ -487,9 +488,11 @@ describe('<Popover />', () => { | |||
}); | |||
|
|||
expectPopover = (top, left) => { | |||
expect(popoverEl.style.top).to.equal(`${top}px`); | |||
expect(popoverEl).toHaveInlineStyle({ |
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.
unrelated refactor while I was working with the test.
Only targets /core for now which doesn't need
data-mui-test
anymore. We can usedata-testid
in tests instead.Part of #23488