From 8995df71ccc24ac942e706dc314b0c307306648f Mon Sep 17 00:00:00 2001 From: Yongjie Zhao Date: Wed, 5 Jan 2022 03:56:13 +0800 Subject: [PATCH] fix(cypress): flake cypress test case (#17918) --- .../cypress/integration/explore/control.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/superset-frontend/cypress-base/cypress/integration/explore/control.test.ts b/superset-frontend/cypress-base/cypress/integration/explore/control.test.ts index b316d5c12e89..804fffafa21b 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/control.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/explore/control.test.ts @@ -118,16 +118,18 @@ describe('Test datatable', () => { cy.login(); interceptChart({ legacy: false }).as('tableChartData'); interceptChart({ legacy: true }).as('lineChartData'); + cy.visitChartByName('Daily Totals'); }); it('Data Pane opens and loads results', () => { cy.get('[data-test="data-tab"]').click(); - cy.get('[data-test="row-count-label"]').contains('27 rows retrieved'); + cy.get('[data-test="row-count-label"]').contains('26 rows retrieved'); cy.contains('View results'); cy.get('.ant-empty-description').should('not.exist'); }); it('Datapane loads view samples', () => { + cy.get('[data-test="data-tab"]').click(); cy.contains('View samples').click(); - cy.get('[data-test="row-count-label"]').contains('1k rows retrieved'); + cy.get('[data-test="row-count-label"]').contains('10k rows retrieved'); cy.get('.ant-empty-description').should('not.exist'); }); });