Skip to content

Commit

Permalink
Merge pull request #1055 from devinit/fix/e2e-data-table
Browse files Browse the repository at this point in the history
Wait for data after click
  • Loading branch information
akmiller01 committed Mar 4, 2024
2 parents f97785e + a1fa923 commit f5126f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/cypress/integration/datasets.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ describe('The Datasets Pages', () => {
// View dataset data in tabular form
cy.visit('/');
cy.wait('@datasets');
cy.wait('@datasetTableData');
cy.get('.dataset-row')
.eq(16)
.then(($datasetRow) => {
cy.wrap($datasetRow)
.contains('View Data')
.click({ force: true })
.then(() => {
cy.wait('@datasetTableData');
cy.get('[data-testid="dataset-table-body"]').children().should('have.length', 15);
cy.get('[data-testid="dataset-export-button"]').should('be.visible');
});
Expand Down

0 comments on commit f5126f4

Please sign in to comment.