Skip to content

Commit

Permalink
feat: CLIN-3292 Adjuts Cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Karine St-Onge committed Oct 25, 2024
1 parent 2d57863 commit ef7e818
Showing 1 changed file with 44 additions and 14 deletions.
58 changes: 44 additions & 14 deletions cypress/e2e/Consultation/PageStudy.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,50 @@ describe('Page d\'une étude - Vérifier les informations affichées', () => {
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(0).contains('T-DEE').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(1).contains('Name').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(1).contains('Developmental and epileptic encephalopathies').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(2).contains('Domain').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(2).contains('Neurodevelopmental Conditions').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(2).find('[class*="StudyEntity_tagGold"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(3).contains('Population').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(3).contains('Pediatric and adult').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(3).find('[class*="StudyEntity_tagCyan"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(4).contains('Keywords').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(4).contains('Epilepsy').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(4).contains('Developmental Disorder').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(4).contains('Family Trios').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(4).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(5).contains('Description').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(5).contains('Case-parent trio study on developmental and epileptic encephalopaties (DEE)').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(5).contains('Description en francais, Case-parent trio study on developmental and epileptic encephalopaties (DEE)').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(2).contains('Description').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(2).contains('Case-parent trio study on developmental and epileptic encephalopaties (DEE)').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(2).contains('Description en francais, Case-parent trio study on developmental and epileptic encephalopaties (DEE)').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(3).contains('Overall Design').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(3).contains('Case only').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(3).contains('Case-control').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(3).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(4).contains('Population').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(4).contains('Pediatric and adult').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(4).find('[class*="StudyEntity_tagCyan"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(5).contains('Inclusion and Exclusion Criteria').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(5).contains('Children with a diagnosis of intractable seizures').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(6).contains('Domain').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(6).contains('Neurodevelopmental Conditions').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(6).find('[class*="StudyEntity_tagGold"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(7).contains('Keywords').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(7).contains('Epilepsy').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(7).contains('Developmental Disorder').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(7).contains('Family Trios').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(7).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(8).contains('Data Category').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(8).contains('Genomics').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(8).contains('Imaging').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(8).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(9).contains('Data Collection Method').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(9).contains('Investigator Assessment').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(9).contains('Medical Records').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(9).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(10).contains('Principal Investigators').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(10).contains('Toto').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(10).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(11).contains('Contact Persons').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(11).contains('Tata').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(11).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(12).contains('Affiliated Institutions').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(12).contains('Toto Institution').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(12).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(13).contains('Website').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(13).contains('https://www.t_dee.com/').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(14).contains('Funding Sources').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(14).contains('fund_source1').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(14).find('[class*="StudyEntity_tag_"]').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-label"]').eq(15).contains('Citation Statement').should('exist');
cy.get('[id="summary"] [class="ant-descriptions-item-content"]').eq(15).contains('very good study').should('exist');
});

it('Panneau Data Access', () => {
Expand Down

0 comments on commit ef7e818

Please sign in to comment.