From 3e5ccb08730f9868f037687e1923f2c8f8834d9b Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:01:13 -0800 Subject: [PATCH] rename notebook to match up with name being checked (#2280) (#2286) (cherry picked from commit a3873585b9c5ad6d30de6bc9e9081f64c9c1978c) Signed-off-by: Ritvi Bhatt Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] 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)')