✅(react) update DatePicker test
The recent updates of @react-aria renamed the segment name from month to "month,", causing tests fails.
This commit is contained in:
@@ -630,7 +630,7 @@ describe("<DatePicker/>", () => {
|
||||
await user.click(toggleButton);
|
||||
|
||||
const monthSegment = await screen.getByRole("spinbutton", {
|
||||
name: "month",
|
||||
name: /month/,
|
||||
});
|
||||
// Select the first segment, month one.
|
||||
await user.click(monthSegment);
|
||||
|
||||
Reference in New Issue
Block a user