From 8ec0b0e577c2bce5a16c3e234099bb6c0b78c274 Mon Sep 17 00:00:00 2001 From: David Newell Date: Thu, 28 Mar 2024 13:34:17 +0000 Subject: [PATCH] fix test --- cypress/e2e/dashboard.cy.ts | 4 ++-- frontend/src/models/insightsModel.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/dashboard.cy.ts b/cypress/e2e/dashboard.cy.ts index d00e244dbce90..ed3a92a465e04 100644 --- a/cypress/e2e/dashboard.cy.ts +++ b/cypress/e2e/dashboard.cy.ts @@ -112,8 +112,8 @@ describe('Dashboard', () => { cy.get('.InsightCard [data-attr=more-button]').first().click() cy.get('button').contains('Rename').click() - cy.get('[data-attr=modal-prompt]').clear().type('Test Name') - cy.contains('OK').click() + cy.get('[data-attr=insight-name]').clear().type('Test Name') + cy.contains('Submit').click() cy.contains('Test Name').should('exist') }) diff --git a/frontend/src/models/insightsModel.tsx b/frontend/src/models/insightsModel.tsx index 922914b98ca01..2047dd546e7f7 100644 --- a/frontend/src/models/insightsModel.tsx +++ b/frontend/src/models/insightsModel.tsx @@ -33,7 +33,7 @@ export const insightsModel = kea([ initialValues: { name: item.name }, content: ( - + ), errors: {