From 2ba2c6f06e85d22ce8e861f17fc5fe20d1c00f0c Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Thu, 11 May 2023 09:34:21 -0700 Subject: [PATCH] Harden flaky Security Cypress test --- .../security_solution/cypress/e2e/timelines/flyout_button.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/cypress/e2e/timelines/flyout_button.cy.ts b/x-pack/plugins/security_solution/cypress/e2e/timelines/flyout_button.cy.ts index ba0ca01d203d5..d4dcd37b6bf20 100644 --- a/x-pack/plugins/security_solution/cypress/e2e/timelines/flyout_button.cy.ts +++ b/x-pack/plugins/security_solution/cypress/e2e/timelines/flyout_button.cy.ts @@ -67,7 +67,7 @@ describe('timeline flyout button', () => { .pipe(($el) => $el.trigger('focus')) .should('have.focus'); cy.get(TIMELINE_SETTINGS_ICON).filter(':visible').type('{esc}'); - cy.get(CREATE_NEW_TIMELINE).should('not.be.visible'); + cy.get(CREATE_NEW_TIMELINE).should('not.exist'); }); it('should render the global search dropdown when the input is focused', () => {