diff --git a/.cypress/integration/notebooks_test/notebooks.spec.js b/.cypress/integration/notebooks_test/notebooks.spec.js index 95c277b635..e9e75a4b9f 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)') diff --git a/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap b/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap index f2213e48f9..d1677bcf5b 100644 --- a/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap +++ b/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap @@ -123,6 +123,7 @@ exports[` spec Renders the empty component 1`] = ` >