diff --git a/x-pack/legacy/plugins/siem/cypress/tasks/date_picker.ts b/x-pack/legacy/plugins/siem/cypress/tasks/date_picker.ts index 2b527a70293e0..0d778b737380b 100644 --- a/x-pack/legacy/plugins/siem/cypress/tasks/date_picker.ts +++ b/x-pack/legacy/plugins/siem/cypress/tasks/date_picker.ts @@ -48,6 +48,7 @@ export const setTimelineEndDate = (date: string) => { cy.get(DATE_PICKER_ABSOLUTE_INPUT).click({ force: true }); cy.get(DATE_PICKER_ABSOLUTE_INPUT).then($el => { + // @ts-ignore if (Cypress.dom.isAttached($el)) { cy.wrap($el).click({ force: true }); } @@ -66,6 +67,7 @@ export const setTimelineStartDate = (date: string) => { cy.get(DATE_PICKER_ABSOLUTE_INPUT).click({ force: true }); cy.get(DATE_PICKER_ABSOLUTE_INPUT).then($el => { + // @ts-ignore if (Cypress.dom.isAttached($el)) { cy.wrap($el).click({ force: true }); }