Skip to content

Commit

Permalink
fix(cypress): flake cypress test case (#17918)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored Jan 4, 2022
1 parent 48d5dc1 commit eff4d38
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Expand Down

0 comments on commit eff4d38

Please sign in to comment.