-
Notifications
You must be signed in to change notification settings - Fork 46
Update UI deps pt. 1 #864
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
base: main
Are you sure you want to change the base?
Update UI deps pt. 1 #864
Conversation
|
||
fireEvent.click(screen.getByRole('button', { name: /Choose annotation dataset/ })); | ||
const picker = screen.getByRole('button', { name: /Choose annotation dataset/ }); | ||
const selectTester = testUtilUser.createTester('Select', { root: picker }); |
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.
According to the documentation, this is the recommended way to interact with the picker https://react-spectrum.adobe.com/react-spectrum/Picker.html#testing
@@ -1 +1 @@ | |||
22.12.0 | |||
22.17.0 No newline at end of file |
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.
Question: why this change?
const testUtilUser = new User(); | ||
|
||
beforeAll(() => { | ||
simulateDesktop(); |
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.
This function sets the view's height and width. It is required due to the picker's virtualization.
Can we divide this into:
(1 PR each) And for now maybe let's leave react-spectrum out. If we need to update our code then this is not so safe as updating minor versions. |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
π Description
Updated deps for UI, fixed tests related to react-spectrum update
#832
β¨ Type of Change
Select the type of change your PR introduces:
π§ͺ Testing Scenarios
Describe how the changes were tested and how reviewers can test them too:
β Checklist
Before submitting the PR, ensure the following: