tests: wait for DatePicker

This commit is contained in:
Markus
2026-08-10 12:42:50 +03:00
parent 074fe8e453
commit d69c64f7ef
+3
View File
@@ -61,6 +61,9 @@ Cypress.Commands.add('selectDate', { prevSubject: true }, (subject, dateObj) =>
.filter((index, el) => Cypress.$(el).text().trim() === targetDay)
.first()
.click({ force: true })
// Wait for the MUI DatePicker
cy.get('div[role="dialog"]').should('not.exist')
} else {
const currentMonthIndex = fiMonths.findIndex((m) => label.includes(m))