Skip to content

Commit

Permalink
Merge pull request #769 from include-dcc/cypress/sjip-1112
Browse files Browse the repository at this point in the history
feat: SJIP-1112 Adjust Cypress tests related to recent changes
  • Loading branch information
Karine St-Onge authored Nov 27, 2024
2 parents 68cccd7 + ccce308 commit 4af83a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions cypress/e2e/Consultation/PageStudy.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('Page d\'une étude - Vérifier les informations affichées', () => {
cy.get('[id="statistic"] [id="data-type"]').contains('Participants by Data Type').should('exist');
});

it('Panneau Data Access [SJIP-1099]', () => {
it('Panneau Data Access', () => {
cy.get('[id="data_access"] [class*="EntityDescriptions_title"]').contains('Data Access').should('exist');
cy.get('[id="data_access"] [class="ant-collapse-header"]').contains('Data Access').should('exist');
cy.get('[id="data_access"] [class="ant-descriptions-item-label"]').eq(0).contains('Access Limitation').should('exist');
Expand All @@ -120,7 +120,7 @@ describe('Page d\'une étude - Vérifier les informations affichées', () => {
cy.get('[id="data_access"] [class="ant-descriptions-item-content"]').eq(2).contains('Angela Rachubinski; [email protected]').should('exist');
});

it('Panneau HTP Whole Blood RNAseq (v1) [SJIP-1100]', () => {
it('Panneau HTP Whole Blood RNAseq (v1)', () => {
cy.get('[class*="StudyEntity_datasetTitle"]').contains('Dataset').should('exist');
cy.get('[class*="StudyEntity_datasetTitle"] [class*="StudyEntity_datasetInfo"]').should('exist');
cy.get('[class*="EntityDataset_panel"]').eq(0).find('[class="ant-collapse-header"]').contains('HTP Whole Blood RNAseq (v1)').should('exist');
Expand Down Expand Up @@ -231,17 +231,17 @@ describe('Page d\'une étude - Valider les liens disponibles', () => {
cy.get('[class*="QueryBar_selected"] [class*="QueryValues_value"]').contains('HTP').should('exist');
});

it('Lien Duo de l\'Access Limitation du panneau Data Access [SJIP-1099]', () => {
it('Lien Duo de l\'Access Limitation du panneau Data Access', () => {
cy.get('[id="data_access"] [class="ant-descriptions-item-content"]').eq(0).find('[href]')
.should('have.attr', 'href', 'http://purl.obolibrary.org/obo/DUO_0000042');
});

it('Lien Publication du panneau HTP Whole Blood RNAseq (v1) [SJIP-1100]', () => {
it('Lien Publication du panneau HTP Whole Blood RNAseq (v1)', () => {
cy.get('[class*="EntityDataset_card"]').eq(0).find('[class="ant-descriptions-item-content"]').eq(4).find('[href]')
.should('have.attr', 'href', 'https://pubmed.ncbi.nlm.nih.gov/37379383');
});

it('Lien Repository du panneau HTP Whole Blood RNAseq (v1) [SJIP-1100]', () => {
it('Lien Repository du panneau HTP Whole Blood RNAseq (v1)', () => {
cy.get('[class*="EntityDataset_card"]').eq(0).find('[class="ant-descriptions-item-content"]').eq(5).find('[href]')
.should('have.attr', 'href', 'https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE190125');
});
Expand Down Expand Up @@ -290,7 +290,7 @@ describe('Page d\'une étude - Valider les panneaux masquables', () => {
cy.get('[id="data_access"] div[class*="ant-collapse-content-active"]').should('exist');
});

it('Panneau HTP Whole Blood RNAseq (v1) [SJIP-1100]', () => {
it('Panneau HTP Whole Blood RNAseq (v1)', () => {
cy.get('[class*="EntityDataset_panel"]').eq(0).find('div[class*="ant-collapse-content-active"]').should('exist');
cy.get('[class*="EntityDataset_panel"]').eq(0).find('span[class*="ant-collapse-arrow"]').clickAndWait({force: true});
cy.get('[class*="EntityDataset_panel"]').eq(0).find('div[class*="ant-collapse-content-inactive ant-collapse-content-hidden"]').should('exist');
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/UploadList/PageVariants.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Page des variants - Téléverser une liste de gènes', () => {
cy.get('[id*="panel-matched"] [data-row-key="176763:2"] td').eq(2).contains('PRDX1').should('exist');
});

it('Vérifier les informations affichées - Section Résumé (onglet Inconnus) [SJIP-1091]', () => {
it('Vérifier les informations affichées - Section Résumé (onglet Inconnus)', () => {
cy.get('[class*="UploadModal"] span[class*="ant-collapse-arrow"]').clickAndWait({force: true});
cy.get('[data-node-key="unmatched"]').clickAndWait({force: true});

Expand Down

0 comments on commit 4af83a2

Please sign in to comment.