Skip to content

Commit

Permalink
feat: SKFP-1378 Adjust Cypress tests related to last ETL run
Browse files Browse the repository at this point in the history
  • Loading branch information
Karine St-Onge committed Nov 27, 2024
1 parent 1093e87 commit 16b248e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/Consultation/TableauFiles.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ describe('Page Data Exploration (Data Files) - Valider les fonctionnalités du t
cy.sortTableAndIntercept('Device ID', 1);
cy.validateTableFirstRow('-', 12, true);
cy.sortTableAndIntercept('Device ID', 1);
cy.validateTableFirstRow('de-zwf3dx8r8d', 12, true);
cy.validateTableFirstRow(/^(?!-).*$/, 12, true);
});

it('Valider les fonctionnalités du tableau - Tri multiple', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/Requetes/ActionsSur0Requete.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.validatePillSelectedQuery('Sample Type', ['DNA']);
cy.wait(5000);
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27K|31.9K|32K|32.1K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);
cy.validateClearAllButton(false);
});
});
6 changes: 3 additions & 3 deletions cypress/e2e/Requetes/ActionsSur1Requete1Pilule.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Page Data Exploration - Requêtes', () => {

cy.validatePillSelectedQuery('Sample Type', ['DNA','RNA']);
cy.validateTotalSelectedQuery(/(26.2K|26.3K|26.4K|27.2K|32K|32.1K|32.2K|32.3K)/);
cy.validateTableResultsCount(/(26,173|26,339|26,349|26,368|26,378|27,172|27,192|32,036|32,056|32,155|32,282)/);
cy.validateTableResultsCount(/(26,173|26,339|26,349|26,368|26,378|27,172|27,192|32,036|32,056|32,155|32,269|32,282)/);
cy.validateClearAllButton(false);
});

Expand All @@ -31,7 +31,7 @@ describe('Page Data Exploration - Requêtes', () => {

cy.validatePillSelectedQuery('Sample Type', ['DNA','RNA']);
cy.validateTotalSelectedQuery(/(26.2K|26.3K|26.4K|27.2K|32K|32.1K|32.2K|32.3K)/);
cy.validateTableResultsCount(/(26,173|26,339|26,349|26,368|26,378|27,172|27,192|32,036|32,056|32,155|32,282)/);
cy.validateTableResultsCount(/(26,173|26,339|26,349|26,368|26,378|27,172|27,192|32,036|32,056|32,155|32,269|32,282)/);
cy.validateClearAllButton(false);
});

Expand Down Expand Up @@ -76,7 +76,7 @@ describe('Page Data Exploration - Requêtes', () => {

cy.validatePillSelectedQuery('Sample Type', ['DNA']);
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27K|31.9K|32K|32.1K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);
cy.validateClearAllButton(true);
});
});
2 changes: 1 addition & 1 deletion cypress/e2e/Requetes/ActionsSur1Requete2Pilules.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000'], 1);
cy.validateOperatorSelectedQuery('or');
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27.1K|32.7K|32.8K|32.9K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,246|27,072|27,094|32,675|32,697|32,760|32,926)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,246|27,072|27,094|32,675|32,697|32,760|32,913|32,926)/);
cy.validateClearAllButton(false);

cy.intercept('POST', '**/graphql').as('getPOSTgraphql2');
Expand Down
16 changes: 8 additions & 8 deletions cypress/e2e/Requetes/ActionsSur2Requetes.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Page Data Exploration - Requêtes', () => {
});

it('Sélectionner une requête', () => {
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);

cy.intercept('POST', '**/graphql').as('getPOSTgraphql');
cy.get('.simplebar-wrapper').invoke('css', 'overflow', 'visible');
Expand All @@ -31,7 +31,7 @@ describe('Page Data Exploration - Requêtes', () => {

cy.validatePillSelectedQuery('', ['DNA']);
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27K|31.9K|32K|32.1K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);
cy.get('.simplebar-wrapper').invoke('css', 'overflow', 'visible');
cy.get('[class*="QueryBar_queryBarWrapper"]').eq(1).clickAndWait();
cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000']);
Expand All @@ -48,22 +48,22 @@ describe('Page Data Exploration - Requêtes', () => {
cy.get('[class*="QueryBar_queryBarWrapper"]').eq(0).clickAndWait();
cy.validatePillSelectedQuery('Sample Type', ['DNA']);
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27K|31.9K|32K|32.1K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);
cy.validateClearAllButton(true);
});

it('Masquer/Afficher le panneau des requêtes', () => {
cy.get('[id="query-builder-header-tools"] span[class*="ant-collapse-arrow"]').clickAndWait({force: true});

cy.get('[id="query-builder-header-tools"] div[class*="ant-collapse-content-inactive ant-collapse-content-hidden"]').should('exist');
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);

cy.get('[id="query-builder-header-tools"] span[class*="ant-collapse-arrow"]').clickAndWait({force: true});

cy.get('[id="query-builder-header-tools"] div[class*="ant-collapse-content-active"]').should('exist');
cy.validatePillSelectedQuery('Sample Type', ['DNA']);
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27K|31.9K|32K|32.1K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);
cy.validateClearAllButton(true);
});

Expand Down Expand Up @@ -97,7 +97,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.validatePillSelectedQuery('', ['Q2'], 1);
cy.validateOperatorSelectedQuery('or');
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27.1K|32.7K|32.8K|32.9K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,246|27,072|27,094|32,675|32,697|32,760|32,926)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,246|27,072|27,094|32,675|32,697|32,760|32,913|32,926)/);
cy.validateClearAllButton(true);
});

Expand Down Expand Up @@ -126,7 +126,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.get('[class*="QueryBar_queryBarWrapper"]').its('length').should('eq', 2);
cy.validatePillSelectedQuery('Sample Type', ['DNA']);
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27K|31.9K|32K|32.1K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);
cy.validateClearAllButton(true);
});

Expand Down Expand Up @@ -165,7 +165,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.get('[class*="QueryBar_queryBarWrapper"]').its('length').should('eq', 2);
cy.validatePillSelectedQuery('Sample Type', ['DNA']);
cy.validateTotalSelectedQuery(/(26.1K|26.2K|27K|31.9K|32K|32.1K)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,146)/);
cy.validateTableResultsCount(/(26,073|26,205|26,215|26,234|26,244|26,978|26,998|31,933|31,953|32,018|32,133|32,146)/);
cy.validateClearAllButton(true);
});

Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/Requetes/ValidationParticipants.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Page Data Exploration - Requêtes', () => {

it('Validation Facette numérique ou No Data', () => {
cy.validateTotalSelectedQuery('15.6K');
cy.validateTableResultsCount('15,605');
cy.validateTableResultsCount('15,592');
});

it('Validation Facette numérique OU Facette standard', () => {
Expand All @@ -23,7 +23,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.wait('@getPOSTgraphql');

cy.validateTotalSelectedQuery('15.5K');
cy.validateTableResultsCount('15,513');
cy.validateTableResultsCount('15,500');
});

it('Validation Facette numérique ou No Data ET Facette standard', () => {
Expand All @@ -33,7 +33,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.wait('@getPOSTgraphql');

cy.validateTotalSelectedQuery('15.5K');
cy.validateTableResultsCount('15,513');
cy.validateTableResultsCount('15,500');
});

it('Validation Facette standard (Any of)', () => {
Expand All @@ -43,7 +43,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.wait('@getPOSTgraphql');

cy.validateTotalSelectedQuery('15.6K');
cy.validateTableResultsCount('15,605');
cy.validateTableResultsCount('15,592');
});

it('Validation Facette standard (All of)', () => {
Expand Down

0 comments on commit 16b248e

Please sign in to comment.