✅(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);
|
await user.click(toggleButton);
|
||||||
|
|
||||||
const monthSegment = await screen.getByRole("spinbutton", {
|
const monthSegment = await screen.getByRole("spinbutton", {
|
||||||
name: "month",
|
name: /month/,
|
||||||
});
|
});
|
||||||
// Select the first segment, month one.
|
// Select the first segment, month one.
|
||||||
await user.click(monthSegment);
|
await user.click(monthSegment);
|
||||||
|
|||||||
Reference in New Issue
Block a user