-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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] Ensure compatibility with React 18 RC 1 #31263
Conversation
@material-ui/core: parsed: -0.01% 😍, gzip: -0.08% 😍 |
expect(img).to.have.attribute('src', '/fake.png'); | ||
const expectedSrc = /jsdom/.test(window.navigator.userAgent) | ||
? '/fake.png' | ||
: new URL('/fake.png', window.origin).toString(); | ||
expect(img).to.have.property('src', expectedSrc); |
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.
Probably caused by facebook/react#23316. Not clear to me if both values are interchangeable and if JSDOM is not correct here.
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.
Thanks for reporting, will fix this in React
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.
The fix will be included in the next RC and is available on main
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.
Thanks! Will try it out to confirm.
PR should not be merged yet until #31263 (comment) is resolved |
React 18 pipeline is now green without any changes to runtime or tests 💪🏻 |
Testing reactwg/react-18#125 by using testing-library/react-testing-library#1018
React 18 pipeline (with browsers)
React 17 pipeline