From 16b248e4e8cfcd9cb2aea9381da653e2adfd1580 Mon Sep 17 00:00:00 2001 From: Karine St-Onge Date: Wed, 27 Nov 2024 07:44:35 -0500 Subject: [PATCH] feat: SKFP-1378 Adjust Cypress tests related to last ETL run --- cypress/e2e/Consultation/TableauFiles.cy.ts | 2 +- cypress/e2e/Requetes/ActionsSur0Requete.cy.ts | 2 +- .../e2e/Requetes/ActionsSur1Requete1Pilule.cy.ts | 6 +++--- .../Requetes/ActionsSur1Requete2Pilules.cy.ts | 2 +- cypress/e2e/Requetes/ActionsSur2Requetes.cy.ts | 16 ++++++++-------- .../e2e/Requetes/ValidationParticipants.cy.ts | 8 ++++---- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/cypress/e2e/Consultation/TableauFiles.cy.ts b/cypress/e2e/Consultation/TableauFiles.cy.ts index dbe5a8c62..6e62edb91 100644 --- a/cypress/e2e/Consultation/TableauFiles.cy.ts +++ b/cypress/e2e/Consultation/TableauFiles.cy.ts @@ -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', () => { diff --git a/cypress/e2e/Requetes/ActionsSur0Requete.cy.ts b/cypress/e2e/Requetes/ActionsSur0Requete.cy.ts index 8c5d98b8d..96bdd075e 100644 --- a/cypress/e2e/Requetes/ActionsSur0Requete.cy.ts +++ b/cypress/e2e/Requetes/ActionsSur0Requete.cy.ts @@ -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); }); }); diff --git a/cypress/e2e/Requetes/ActionsSur1Requete1Pilule.cy.ts b/cypress/e2e/Requetes/ActionsSur1Requete1Pilule.cy.ts index 4a6b7c875..c0bcd643f 100644 --- a/cypress/e2e/Requetes/ActionsSur1Requete1Pilule.cy.ts +++ b/cypress/e2e/Requetes/ActionsSur1Requete1Pilule.cy.ts @@ -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); }); @@ -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); }); @@ -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); }); }); diff --git a/cypress/e2e/Requetes/ActionsSur1Requete2Pilules.cy.ts b/cypress/e2e/Requetes/ActionsSur1Requete2Pilules.cy.ts index 8e362ddee..0043bdb73 100644 --- a/cypress/e2e/Requetes/ActionsSur1Requete2Pilules.cy.ts +++ b/cypress/e2e/Requetes/ActionsSur1Requete2Pilules.cy.ts @@ -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'); diff --git a/cypress/e2e/Requetes/ActionsSur2Requetes.cy.ts b/cypress/e2e/Requetes/ActionsSur2Requetes.cy.ts index 65db82b59..c91e4d2c6 100644 --- a/cypress/e2e/Requetes/ActionsSur2Requetes.cy.ts +++ b/cypress/e2e/Requetes/ActionsSur2Requetes.cy.ts @@ -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'); @@ -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']); @@ -48,7 +48,7 @@ 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); }); @@ -56,14 +56,14 @@ describe('Page Data Exploration - 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); }); @@ -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); }); @@ -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); }); @@ -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); }); diff --git a/cypress/e2e/Requetes/ValidationParticipants.cy.ts b/cypress/e2e/Requetes/ValidationParticipants.cy.ts index 7f4a28f92..e5f726408 100644 --- a/cypress/e2e/Requetes/ValidationParticipants.cy.ts +++ b/cypress/e2e/Requetes/ValidationParticipants.cy.ts @@ -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', () => { @@ -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', () => { @@ -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)', () => { @@ -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)', () => {