Skip to content

Commit

Permalink
feat: SJIP-1133 Adjust Cypress tests related to recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Karine St-Onge committed Dec 9, 2024
1 parent a798089 commit d25065a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/Consultation/Landing.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('Page Landing - Vérifier les informations affichées', () => {
cy.get('[class*="Studies_container"] [class*="Summary"] [class*="TextIcon_layout"]').contains(/\d{1}/).should('exist');
cy.get('[class*="Studies_container"] [class*="Summary"] [class*="TextIcon_layout"]').contains('Studies').should('exist');
cy.get('[class*="Studies_container"] [class*="Summary"]').contains('Explore a curated collection of harmonized studies, ranging from participant-reported programs, INCLUDE-funded cohorts, institutional initiatives, and dedicated consortia focused on Down Syndrome research.').should('exist');
cy.get('[class*="Studies_container"] [class*="Summary"] button[class*="ant-btn-primary"]').contains('View all studies').should('exist');
});

it('Section Studies Right Panel Tile', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/Navigation/Pages.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('Navigation', () => {
cy.get('[data-cy="SidebarMenuItem_Participant"]').clickAndWait({force: true});

cy.get('button[class*="UploadIdsButton"]').clickAndWait({force: true});
cy.get('[class="ant-modal-header"]').contains('Participant').should('exist');
cy.get('[class="ant-modal-header"]').contains('participant').should('exist');
cy.get('button[class="ant-modal-close"]').invoke('click');

cy.get('div[class*="Filters_filter"]').contains('Phenotype (HPO)').clickAndWait({force: true});
Expand All @@ -154,13 +154,13 @@ describe('Navigation', () => {
cy.get('[data-cy="SidebarMenuItem_Biospecimen"]').clickAndWait({force: true});

cy.get('button[class*="UploadIdsButton"]').clickAndWait({force: true});
cy.get('[class="ant-modal-header"]').contains('Sample').should('exist');
cy.get('[class="ant-modal-header"]').contains('sample').should('exist');
cy.get('button[class="ant-modal-close"]').invoke('click');

cy.get('[data-cy="SidebarMenuItem_Data File"]').clickAndWait({force: true});

cy.get('button[class*="UploadIdsButton"]').clickAndWait({force: true});
cy.get('[class="ant-modal-header"]').contains('File').should('exist');
cy.get('[class="ant-modal-header"]').contains('file').should('exist');
cy.get('button[class="ant-modal-close"]').invoke('click');

// Query Builder
Expand Down

0 comments on commit d25065a

Please sign in to comment.