Skip to content

Commit

Permalink
potential fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Dec 22, 2023
1 parent d0483bc commit 20d8636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/insights-duplication.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)`)
})
Expand All @@ -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)`)
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/insights.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 20d8636

Please sign in to comment.