You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2022/01/04 19:57:24 UTC

[superset] branch master updated: fix(cypress): flake cypress test case (#17918)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new eff4d38  fix(cypress): flake cypress test case (#17918)
eff4d38 is described below

commit eff4d387de1501d21b4bd51e3a77541b425e79cc
Author: Yongjie Zhao <yo...@gmail.com>
AuthorDate: Wed Jan 5 03:56:13 2022 +0800

    fix(cypress): flake cypress test case (#17918)
---
 .../cypress-base/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 b316d5c..804fffa 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');
   });
 });