(react) update DateRangerPicker test

Due to the recent update of @react-aria/calendar the role of the calendar
has changed from group to application, the test were using this role.
This commit is contained in:
Nathan Vasse
2023-07-12 14:39:23 +02:00
committed by NathanVss
parent 72ebd56568
commit 16dd24148b
2 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ describe("<DateRangePicker/>", () => {
};
const expectCalendarToBeClosed = () => {
expect(screen.queryByRole("group")).toBeNull();
expect(screen.queryByRole("application")).toBeNull();
};
const expectDateFieldsToBeDisplayed = () => {
@@ -44,7 +44,7 @@ describe("<DateRangePicker/>", () => {
};
const expectCalendarToBeOpen = () => {
const calendar = screen.queryByRole("group");
const calendar = screen.queryByRole("application");
expect(calendar).toBeDefined();
expect(calendar).not.toBeNull();
expect(Array.from(calendar!.classList)).contains(