From 20d86368330539ef43ffb00bb7cebea610e8265b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obermu=CC=88ller?= Date: Fri, 22 Dec 2023 15:50:36 +0100 Subject: [PATCH] potential fixes --- cypress/e2e/insights-duplication.cy.ts | 4 ++-- cypress/e2e/insights.cy.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/insights-duplication.cy.ts b/cypress/e2e/insights-duplication.cy.ts index 465eb5145e71c..43fbf90a9ad02 100644 --- a/cypress/e2e/insights-duplication.cy.ts +++ b/cypress/e2e/insights-duplication.cy.ts @@ -47,7 +47,7 @@ describe('Insights', () => { it('can duplicate from insight view', () => { cy.get('.TopBar3000 [data-attr="more-button"]').click() cy.get('[data-attr="duplicate-insight-from-insight-view"]').click() - cy.get('[data-attr="insight-name"]').should('contain', `${insightName} (copy)`) + cy.get('[data-attr="top-bar-name"] .EditableField__display').should('contain', `${insightName} (copy)`) savedInsights.checkInsightIsInListView(`${insightName} (copy)`) }) @@ -58,7 +58,7 @@ describe('Insights', () => { cy.get('[data-attr="insight-save-dropdown"]').click() cy.get('[data-attr="insight-save-as-new-insight"]').click() cy.get('.ant-modal-content .ant-btn-primary').click() - cy.get('[data-attr="insight-name"]').should('contain', `${insightName} (copy)`) + cy.get('[data-attr="top-bar-name"] .EditableField__display').should('contain', `${insightName} (copy)`) savedInsights.checkInsightIsInListView(`${insightName} (copy)`) }) diff --git a/cypress/e2e/insights.cy.ts b/cypress/e2e/insights.cy.ts index 8d86aac188164..a0a0fa47b7418 100644 --- a/cypress/e2e/insights.cy.ts +++ b/cypress/e2e/insights.cy.ts @@ -72,7 +72,7 @@ describe('Insights', () => { cy.url().should('match', /insights\/[\w\d]+\/edit/) - cy.get('.page-title').then(($pageTitle) => { + cy.get('[data-attr="top-bar-name"] .EditableField__display').then(($pageTitle) => { const pageTitle = $pageTitle.text() cy.get('[data-attr="add-action-event-button"]').click()