Skip to content

Commit

Permalink
test: increase data ingestion timeout to prevent random failures in e…
Browse files Browse the repository at this point in the history
…2e test
  • Loading branch information
csm-thu committed Feb 7, 2024
1 parent 406d1cd commit 62c6a14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/e2e/brewery/DatasetManager_e2e.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
DATASET_STORAGE_REFERENCE_FOLDER,
} from '../../commons/constants/brewery/TestConstants';

const DATA_INGESTION_DURATION = 180;

describe('End-to-end test of the dataset manager view', () => {
beforeEach(() => {
Login.login();
Expand All @@ -34,7 +36,7 @@ describe('End-to-end test of the dataset manager view', () => {

DatasetManager.getDatasetSearchBarInput().click().type(storageDatasetName);
DatasetManager.getAllRefreshDatasetSpinners().should('be.visible');
DatasetManager.getAllRefreshDatasetSpinners(90).should('not.exist');
DatasetManager.getAllRefreshDatasetSpinners(DATA_INGESTION_DURATION).should('not.exist');
DatasetManager.getIndicatorCard('bars_count').should('be.visible');
DatasetManager.getKpiValue(DatasetManager.getIndicatorCard('bars_count')).should('have.text', 1);

Expand Down Expand Up @@ -63,7 +65,7 @@ describe('End-to-end test of the dataset manager view', () => {
DatasetManager.confirmDatasetCreation({ isFile: true });

DatasetManager.getDatasetSearchBarInput().click().type(fileDatasetName);
DatasetManager.getAllRefreshDatasetSpinners(90).should('not.exist');
DatasetManager.getAllRefreshDatasetSpinners(DATA_INGESTION_DURATION).should('not.exist');
DatasetManager.getIndicatorCard('satisfaction_links_count').should('be.visible');
DatasetManager.getKpiValue(DatasetManager.getIndicatorCard('satisfaction_links_count')).should('have.text', 8);

Expand Down

0 comments on commit 62c6a14

Please sign in to comment.