diff --git a/x-pack/plugins/security_solution/cypress/integration/timelines/row_renderers.spec.ts b/x-pack/plugins/security_solution/cypress/integration/timelines/row_renderers.spec.ts index b3103963284b..77a1775494e6 100644 --- a/x-pack/plugins/security_solution/cypress/integration/timelines/row_renderers.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/timelines/row_renderers.spec.ts @@ -46,6 +46,7 @@ describe('Row renderers', () => { loginAndWaitForPage(HOSTS_URL); openTimelineUsingToggle(); populateTimeline(); + cy.get(TIMELINE_SHOW_ROW_RENDERERS_GEAR).should('exist'); cy.get(TIMELINE_SHOW_ROW_RENDERERS_GEAR).first().click({ force: true }); }); @@ -59,6 +60,7 @@ describe('Row renderers', () => { }); it('Selected renderer can be disabled and enabled', () => { + cy.get(TIMELINE_ROW_RENDERERS_SEARCHBOX).should('exist'); cy.get(TIMELINE_ROW_RENDERERS_SEARCHBOX).type('flow'); cy.get(TIMELINE_ROW_RENDERERS_MODAL_ITEMS_CHECKBOX).first().uncheck(); @@ -75,8 +77,11 @@ describe('Row renderers', () => { }); }); - it.skip('Selected renderer can be disabled with one click', () => { - cy.get(TIMELINE_ROW_RENDERERS_DISABLE_ALL_BTN).click({ force: true }); + it('Selected renderer can be disabled with one click', () => { + cy.get(TIMELINE_ROW_RENDERERS_DISABLE_ALL_BTN).should('exist'); + cy.get(TIMELINE_ROW_RENDERERS_DISABLE_ALL_BTN) + .pipe(($el) => $el.trigger('click')) + .should('not.be.visible'); cy.intercept('PATCH', '/api/timeline').as('updateTimeline'); cy.wait('@updateTimeline').its('response.statusCode').should('eq', 200); diff --git a/x-pack/plugins/security_solution/cypress/integration/urls/state.spec.ts b/x-pack/plugins/security_solution/cypress/integration/urls/state.spec.ts index f2b644e8d054..842dd85b42ef 100644 --- a/x-pack/plugins/security_solution/cypress/integration/urls/state.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/urls/state.spec.ts @@ -74,7 +74,6 @@ describe('url state', () => { waitForIpsTableToBeLoaded(); setEndDate(ABSOLUTE_DATE.newEndTimeTyped); updateDates(); - cy.wait(300); let startDate: string; let endDate: string; diff --git a/x-pack/plugins/security_solution/cypress/tasks/date_picker.ts b/x-pack/plugins/security_solution/cypress/tasks/date_picker.ts index 5fef4f2f5569..26512a2fcbc5 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/date_picker.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/date_picker.ts @@ -21,7 +21,7 @@ export const setEndDate = (date: string) => { cy.get(DATE_PICKER_ABSOLUTE_TAB).first().click({ force: true }); - cy.get(DATE_PICKER_ABSOLUTE_INPUT).clear().type(date); + cy.get(DATE_PICKER_ABSOLUTE_INPUT).click().clear().type(date); }; export const setStartDate = (date: string) => { @@ -29,7 +29,7 @@ export const setStartDate = (date: string) => { cy.get(DATE_PICKER_ABSOLUTE_TAB).first().click({ force: true }); - cy.get(DATE_PICKER_ABSOLUTE_INPUT).clear().type(date); + cy.get(DATE_PICKER_ABSOLUTE_INPUT).click().clear().type(date); }; export const setTimelineEndDate = (date: string) => {