mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
tests: wait for DatePicker
This commit is contained in:
@@ -61,6 +61,9 @@ Cypress.Commands.add('selectDate', { prevSubject: true }, (subject, dateObj) =>
|
|||||||
.filter((index, el) => Cypress.$(el).text().trim() === targetDay)
|
.filter((index, el) => Cypress.$(el).text().trim() === targetDay)
|
||||||
.first()
|
.first()
|
||||||
.click({ force: true })
|
.click({ force: true })
|
||||||
|
|
||||||
|
// Wait for the MUI DatePicker
|
||||||
|
cy.get('div[role="dialog"]').should('not.exist')
|
||||||
} else {
|
} else {
|
||||||
const currentMonthIndex = fiMonths.findIndex((m) => label.includes(m))
|
const currentMonthIndex = fiMonths.findIndex((m) => label.includes(m))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user