Skip to content

Commit

Permalink
Try making skipped Cypress test less flaky and un-skip. (#20568)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyml authored Jun 30, 2022
1 parent ac8e502 commit b99482d
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,16 @@ describe('Test datatable', () => {
cy.get('[data-test="row-count-label"]').contains('26 rows');
cy.get('.ant-empty-description').should('not.exist');
});
it.skip('Datapane loads view samples', () => {
cy.contains('Samples').click();
cy.get('[data-test="row-count-label"]').contains('1k rows');
cy.get('.ant-empty-description').should('not.exist');
it('Datapane loads view samples', () => {
cy.intercept('/api/v1/dataset/*/samples?force=false').as('Samples');
cy.contains('Samples')
.click()
.then(() => {
cy.wait('@Samples');
cy.get('.ant-tabs-tab-active').contains('Samples');
cy.get('[data-test="row-count-label"]').contains('1k rows');
cy.get('.ant-empty-description').should('not.exist');
});
});
});

Expand Down

0 comments on commit b99482d

Please sign in to comment.