Skip to content

Commit

Permalink
Merge pull request #976 from devinit/fix/cypress-test-datasets
Browse files Browse the repository at this point in the history
Fix | Assertion Error, Delete Frozen Data Source
  • Loading branch information
ThatcherK authored Aug 24, 2023
2 parents 0882122 + c33e55f commit ac8d94a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion frontend/cypress/integration/dataSources.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ describe('The Data Sources Page', () => {
cy.get('[data-testid="frozen-data-description"]')
.first()
.contains('End-to-end test freeze data source');
cy.get('[data-testid="frozen-data-delete-button"]').first().dblclick({ force: true });
cy.get('[data-testid="frozen-data-delete-button"]')
.first()
.click({ force: true })
.click({ force: true });

// Check row count after deleting
cy.get('@dataSourceRowNumber').then((dataSourceRowNumber) => {
Expand Down
3 changes: 2 additions & 1 deletion frontend/cypress/integration/datasets.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,15 @@ describe('The Datasets Pages', () => {

it('views data in datasets', () => {
cy.fixture('datasets').then((datasets) => {
cy.intercept('/api/datasets/mine/?limit=10&offset=0&search=', datasets);
cy.intercept('/api/datasets/mine/?limit=10&offset=0&search=', datasets).as('datasets');
});
cy.fixture('datasetTableData').then((data) => {
cy.intercept('/api/dataset/data/346', data);
});

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

0 comments on commit ac8d94a

Please sign in to comment.