From a3873585b9c5ad6d30de6bc9e9081f64c9c1978c Mon Sep 17 00:00:00 2001 From: ritvibhatt <53196324+ritvibhatt@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:21:39 -0800 Subject: [PATCH] rename notebook to match up with name being checked (#2280) Signed-off-by: Ritvi Bhatt Co-authored-by: Ritvi Bhatt --- .cypress/integration/notebooks_test/notebooks.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cypress/integration/notebooks_test/notebooks.spec.js b/.cypress/integration/notebooks_test/notebooks.spec.js index 95c277b63..e9e75a4b9 100644 --- a/.cypress/integration/notebooks_test/notebooks.spec.js +++ b/.cypress/integration/notebooks_test/notebooks.spec.js @@ -380,11 +380,11 @@ describe('Testing paragraphs', () => { cy.get('h3[data-test-subj="notebookTitle"]').contains(TEST_NOTEBOOK).should('exist'); cy.get('[data-test-subj="notebook-duplicate-icon"]').click(); cy.get('.euiButton__text').contains('Duplicate').click(); + cy.get('h3[data-test-subj="notebookTitle"]').contains(TEST_NOTEBOOK + ' (copy)').should('exist'); cy.get('[data-test-subj="notebook-edit-icon"]').click(); - cy.get('input.euiFieldText[data-autofocus="true"]').focus().type(' (rename)'); + cy.get('input.euiFieldText[data-autofocus="true"]').clear().type(TEST_NOTEBOOK + ' (rename)'); cy.get('.euiButton__text').last().contains('Rename').click(); - cy.reload(); cy.get('h3[data-test-subj="notebookTitle"]') .contains(TEST_NOTEBOOK + ' (rename)')