Skip to content

Commit

Permalink
Fixed tests, again
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 committed Aug 9, 2024
1 parent d94ee25 commit 462c88a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/insights-navigation-open-sql-insight-first.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Insights', () => {
insight.newInsight('SQL')
insight.updateQueryEditorText(hogQLQuery, 'hogql-query-editor')
cy.get('[data-attr="hogql-query-editor"]').should('exist')
cy.get('tr.DataTable__row').should('have.length.gte', 2)
cy.get('tr.DataVizRow').should('have.length.gte', 2)
})

it('can open a new trends insight', () => {
Expand Down Expand Up @@ -68,7 +68,7 @@ describe('Insights', () => {
insight.clickTab('SQL')
insight.updateQueryEditorText(hogQLQuery, 'hogql-query-editor')
cy.get('[data-attr="hogql-query-editor"]').should('exist')
cy.get('tr.DataTable__row').should('have.length.gte', 2)
cy.get('tr.DataVizRow').should('have.length.gte', 2)
})
})
})
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/insights-navigation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Insights', () => {
cy.contains('.Link', insightName).click()

cy.get('[data-attr="hogql-query-editor"]').should('not.exist')
cy.get('tr.DataTable__row').should('have.length.gte', 2)
cy.get('tr.DataVizRow').should('have.length.gte', 2)

cy.get('[data-attr="insight-edit-button"]').click()
insight.clickTab('RETENTION')
Expand All @@ -50,7 +50,7 @@ describe('Insights', () => {
cy.get('[data-attr="hogql-query-editor"]').should('exist')
insight.updateQueryEditorText(hogQLQuery, 'hogql-query-editor')

cy.get('.DataTable tr').should('have.length.gte', 2)
cy.get('.DataVizTable tr').should('have.length.gte', 2)

insight.clickTab('TRENDS')
cy.get('.TrendsInsight canvas').should('exist')
Expand All @@ -61,7 +61,7 @@ describe('Insights', () => {
cy.get('[data-attr="hogql-query-editor"]').should('exist')
insight.updateQueryEditorText(hogQLQuery, 'hogql-query-editor')

cy.get('.DataTable tr').should('have.length.gte', 2)
cy.get('.DataVizTable tr').should('have.length.gte', 2)

insight.clickTab('TRENDS')
cy.get('.TrendsInsight canvas').should('exist')
Expand Down

0 comments on commit 462c88a

Please sign in to comment.