From cbe5e7324a3ae780c3fb9e54d0690ae49a9a8c33 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Fri, 6 Dec 2024 21:21:57 +0000
Subject: [PATCH] rename notebook to match up with name being checked (#2280)

Signed-off-by: Ritvi Bhatt <ribhatt@amazon.com>
Co-authored-by: Ritvi Bhatt <ribhatt@amazon.com>
(cherry picked from commit a3873585b9c5ad6d30de6bc9e9081f64c9c1978c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
---
 .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)')