Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Mar 28, 2024
1 parent 46bc4b6 commit 8ec0b0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/dashboard.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/models/insightsModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const insightsModel = kea<insightsModelType>([
initialValues: { name: item.name },
content: (
<LemonField name="name">
<LemonInput placeholder="Please enter the new name" autoFocus />
<LemonInput data-attr="insight-name" placeholder="Please enter the new name" autoFocus />
</LemonField>
),
errors: {
Expand Down

0 comments on commit 8ec0b0e

Please sign in to comment.