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

Upgrade support for react 17 #1040

Merged
merged 29 commits into from
Sep 29, 2020
Merged

Upgrade support for react 17 #1040

merged 29 commits into from
Sep 29, 2020

Conversation

snowystinger
Copy link
Member

@snowystinger snowystinger commented Sep 1, 2020

Closes #1074

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@snowystinger snowystinger changed the base branch from main to cleanup-tests September 1, 2020 01:45
Base automatically changed from cleanup-tests to main September 4, 2020 18:54
@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@snowystinger snowystinger changed the title [WIP] - Upgrade support for react 17 Upgrade support for react 17 Sep 16, 2020
@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@snowystinger
Copy link
Member Author

Do we want to keep both the 16 and 17 build of storybook? and do we have a different way we want to expose the version to storybook ui?

solimant
solimant previously approved these changes Sep 16, 2020
Copy link
Collaborator

@solimant solimant left a comment

Choose a reason for hiding this comment

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

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

Pin a bunch of versions to get some tests passing in react 17
upgrade react/react-dom deps to 17
talked to devon about focus scope tests, we're not sure why these changes don't break them
changed some bubbles to capture phase
added a story for testing in browser, delete it later
fix remaining failing tests

now we just have weird node error messages and two hanging tests
…nested modals

this should check to make sure that the outer one doesn't try to focus inside itself while the inner one is still open
fix lint
…dress in a followup.

Something about runAfterTransitions recent change is what extended the time by so much
fix a ref to the new way of doing things
talked to devon about focus scope tests, we're not sure why these changes don't break them
changed some bubbles to capture phase
added a story for testing in browser, delete it later

Queue up useId updates to fix bad setState
fix remaining failing tests
now we just have weird node error messages and two hanging tests

Fixes the remainder of the tests, however, i need to add one now for nested modals
this should check to make sure that the outer one doesn't try to focus inside itself while the inner one is still open

Fix up useId so that it runs immediately if it's not in a render cycle

can not put NODE_ENV before the yarn add command, it causes icons to fail to build

build react 17 storybook
@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@devongovett devongovett merged commit 471eba3 into main Sep 29, 2020
@devongovett devongovett deleted the pass-react-17-in-jest branch September 29, 2020 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get React 17 ready
5 participants