Skip to content

Commit

Permalink
Wait for datasetTableData intercept
Browse files Browse the repository at this point in the history
  • Loading branch information
akmiller01 committed Mar 4, 2024
1 parent 5014dae commit 49f48d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/cypress/integration/datasets.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,13 @@ describe('The Datasets Pages', () => {
cy.intercept('/api/datasets/mine/?limit=10&offset=0&search=', datasets).as('datasets');
});
cy.fixture('datasetTableData').then((data) => {
cy.intercept('/api/dataset/data/346/?limit=15&offset=0', data);
cy.intercept('/api/dataset/data/346/?limit=15&offset=0', data).as('datasetTableData');
});

// View dataset data in tabular form
cy.visit('/');
cy.wait('@datasets');
cy.wait('@datasetTableData');
cy.get('.dataset-row')
.eq(16)
.then(($datasetRow) => {
Expand Down

0 comments on commit 49f48d7

Please sign in to comment.