Skip to content

Commit

Permalink
feat: SKFP-1398 Adjust Cypress tests related to SKFP-1396
Browse files Browse the repository at this point in the history
  • Loading branch information
Karine St-Onge authored and kstonge committed Dec 10, 2024
1 parent 3326881 commit b6e2b32
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/Consultation/TableauFiles.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe('Page Data Exploration (Data Files) - Valider les fonctionnalités du t
cy.sortTableAndIntercept('Size', 1);
cy.validateTableFirstRow(/^(?!-).*$/, 9, true);
cy.sortTableAndIntercept('Size', 1);
cy.validateTableFirstRow('572.08 GB', 9, true);
cy.validateTableFirstRow(/^(?!-).*$/, 9, true);
});

it('Valider les fonctionnalités du tableau - Tri Participants', () => {
Expand Down Expand Up @@ -186,7 +186,7 @@ describe('Page Data Exploration (Data Files) - Valider les fonctionnalités du t
cy.sortTableAndIntercept('Platform', 1);
cy.validateTableFirstRow('-', 12, true);
cy.sortTableAndIntercept('Platform', 1);
cy.validateTableFirstRow('Not Reported', 12, true);
cy.validateTableFirstRow(/^(?!-).*$/, 12, true);
});

it('Valider les fonctionnalités du tableau - Tri Repository', () => {
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/Requetes/ActionsSur1Requete2Pilules.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ describe('Page Data Exploration - Requêtes', () => {
cy.validatePillSelectedQuery('Sample Type', ['DNA']);
cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000'], 1);
cy.validateOperatorSelectedQuery('and');
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|5,885|7,623|7,643|7,705)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|5,885|7,623|7,643|7,705)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|4,357|5,885|7,623|7,643|7,705)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|4,357|5,885|7,623|7,643|7,705)/);
cy.validateClearAllButton(false);
});

Expand All @@ -52,8 +52,8 @@ describe('Page Data Exploration - Requêtes', () => {
};

cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000']);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateClearAllButton(false);
});
});
26 changes: 13 additions & 13 deletions cypress/e2e/Requetes/ActionsSur2Requetes.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Page Data Exploration - Requêtes', () => {
cy.get('[class*="QueryBar_queryBarWrapper"]').eq(1).clickAndWait();
cy.wait('@getPOSTgraphql');

cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
});

it('Afficher/Masquer les champs', () => {
Expand All @@ -35,15 +35,15 @@ describe('Page Data Exploration - Requêtes', () => {
cy.get('.simplebar-wrapper').invoke('css', 'overflow', 'visible');
cy.get('[class*="QueryBar_queryBarWrapper"]').eq(1).clickAndWait();
cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000']);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateClearAllButton(true);

cy.get('button[role="switch"]').clickAndWait({force: true});

cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000']);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.get('.simplebar-wrapper').invoke('css', 'overflow', 'visible');
cy.get('[class*="QueryBar_queryBarWrapper"]').eq(0).clickAndWait();
cy.validatePillSelectedQuery('Sample Type', ['DNA']);
Expand Down Expand Up @@ -79,8 +79,8 @@ describe('Page Data Exploration - Requêtes', () => {
cy.validatePillSelectedQuery('', ['Q1']);
cy.validatePillSelectedQuery('', ['Q2'], 1);
cy.validateOperatorSelectedQuery('and');
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|5,885|7,623|7,643|7,705)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|5,885|7,623|7,643|7,705)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|4,357|5,885|7,623|7,643|7,705)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|4,357|5,885|7,623|7,643|7,705)/);
cy.validateClearAllButton(true);
});

Expand Down Expand Up @@ -112,8 +112,8 @@ describe('Page Data Exploration - Requêtes', () => {
cy.validatePillSelectedQuery('', ['Q1']);
cy.validatePillSelectedQuery('', ['Q2'], 1);
cy.validateOperatorSelectedQuery('and');
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|5,885|7,623|7,643|7,705)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|5,885|7,623|7,643|7,705)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|4,357|5,885|7,623|7,643|7,705)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,945|2,676|2,696|4,219|4,357|5,885|7,623|7,643|7,705)/);
cy.validateClearAllButton(true);
});

Expand All @@ -138,8 +138,8 @@ describe('Page Data Exploration - Requêtes', () => {
cy.get('[class*="ant-popconfirm"]').should('not.exist');
cy.get('[class*="QueryBar_queryBarWrapper"]').its('length').should('eq', 1);
cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000']);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateClearAllButton(false);
});

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

cy.get('[class*="QueryBar_queryBarWrapper"]').its('length').should('eq', 1);
cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000']);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateClearAllButton(false);
});

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

cy.get('[class*="QueryBar_queryBarWrapper"]').its('length').should('eq', 2);
cy.validatePillSelectedQuery('Age at Biospec. Collection (days)', ['20000']);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|6,665|8,365|8,387|8,447)/);
cy.validateTotalSelectedQuery(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.validateTableResultsCount(/(1,843|1,918|1,928|1,935|1,947|2,770|2,792|4,999|5,137|6,665|8,365|8,387|8,447)/);
cy.get('[class*="QueryBar_queryBarWrapper"]').eq(1).find('[class*="QueryValues_queryValuesContainer"]').contains('Q1').should('exist');
cy.get('[class*="QueryBar_queryBarWrapper"]').eq(1).find('[class*="QueryValues_queryValuesContainer"]').contains('Q2').should('not.exist');
cy.validateClearAllButton(true);
Expand Down

0 comments on commit b6e2b32

Please sign in to comment.