From 0f52f3fd06f9738ccfa6a082c06c02e14ba98a4f Mon Sep 17 00:00:00 2001 From: Michael Olorunnisola Date: Wed, 13 Dec 2023 15:35:09 -0500 Subject: [PATCH] update creation.cy.ts test --- .../cypress/e2e/investigations/timelines/creation.cy.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/creation.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/creation.cy.ts index 9857e24e5b33..b3c1361c517a 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/creation.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/creation.cy.ts @@ -137,10 +137,7 @@ describe('Timelines', { tags: ['@ess', '@serverless'] }, (): void => { addNameToTimelineAndSave('Test'); // Saved - cy.get(TIMELINE_STATUS).should('be.visible'); - cy.get(TIMELINE_STATUS) - .invoke('text') - .should('match', /^Saved/); + cy.get(TIMELINE_STATUS).should('not.exist'); // Offsetting the extra save that is happening in the background // for the saved search object. @@ -153,7 +150,7 @@ describe('Timelines', { tags: ['@ess', '@serverless'] }, (): void => { cy.get(TIMELINE_STATUS).should('be.visible'); cy.get(TIMELINE_STATUS) .invoke('text') - .should('match', /^Has unsaved changes/); + .should('match', /^Unsaved changes/); }); it('should save timelines as new', () => {