(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:
Nathan Vasse
2023-07-12 15:28:33 +02:00
committed by NathanVss
parent 16dd24148b
commit 2344cdbe6f

View File

@@ -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);