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

docs(upgrade): Adds more detail to upgrade guide. #4332

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

edonehoo
Copy link
Collaborator

Closes both #4277 and #4314

@edonehoo
Copy link
Collaborator Author

@wise-king-sullyman can you let me know if I interpreted the test failures correctly?

@patternfly-build
Copy link
Contributor

patternfly-build commented Oct 18, 2024

Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

This is great! A couple small things:

Comment on lines 95 to 96
1. **Select (when using Jest):** Cannot find `role`
- You may get an "unable to find role" error if the Popper menu is set to `aria-disabled` after a selection is made, because the RTL query can't find the menu options. This error only seems to occur with Jest, rather than within the browser. To resolve this, either:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
1. **Select (when using Jest):** Cannot find `role`
- You may get an "unable to find role" error if the Popper menu is set to `aria-disabled` after a selection is made, because the RTL query can't find the menu options. This error only seems to occur with Jest, rather than within the browser. To resolve this, either:
1. **Select (when using React Testing Library):** Cannot find `role`
- You may get an "unable to find role" error if the Popper menu is set to `aria-disabled` after a selection is made, because the RTL query can't find the menu options. This error only seems to occur in unit tests, rather than within the browser. To resolve this, either:

It's more of an RTL thing than Jest, at least I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought we were talking about right-to-left ahhaha

Amazing, ty!

Copy link
Collaborator

Choose a reason for hiding this comment

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

That is very much not the first time that RTL vs RTL confusion has happened haha

Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

🎉

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.

3 participants