Skip to content

Commit

Permalink
Merge branch 'dev' into cypress/skfp-1283
Browse files Browse the repository at this point in the history
  • Loading branch information
Karine St-Onge authored Sep 26, 2024
2 parents 9fbfda9 + 6501df9 commit 4c4eccb
Show file tree
Hide file tree
Showing 11 changed files with 265 additions and 35 deletions.
230 changes: 230 additions & 0 deletions cypress/e2e/Consultation/Landing.cy.ts

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions cypress/e2e/Consultation/Login.cy.ts

This file was deleted.

41 changes: 28 additions & 13 deletions cypress/e2e/Navigation/Logout.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,35 @@ describe('Page Logout', () => {
cy.visit('/');
});

it('Vérifier les informations affichées [SKFP-1208]', () => {
it('Vérifier les informations affichées', () => {
cy.logout();

cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_data"]').eq(0).contains(/\d{2}/).should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_description"]').eq(0).contains('Studies').should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_data"]').eq(1).contains(/(\d{2}\.\d{1}|\d{3})K/).should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_description"]').eq(1).contains('Participants').should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_data"]').eq(2).contains(/\d{2}M+/).should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_description"]').eq(2).contains('Variants').should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_data"]').eq(3).contains(/(\d{2}\.\d{1}|\d{3})K/).should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_description"]').eq(3).contains('Biospecimens').should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_data"]').eq(4).contains(/\d{1}\.\d{2}PB/).should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_description"]').eq(4).contains('Files').should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_data"]').eq(5).contains(/\d{2}\.\d{1}K/).should('exist');
cy.get('[class*="Grid_statsGrid"] [class*="Grid_stats"] [class*="Grid_description"]').eq(5).contains('Genomes').should('exist');
cy.get('[class*="TopBanner"] h1[class*="LandingPageTitle"]').contains('Kids First Data Resource Portal').should('exist');
cy.get('[class*="StudiesSection_title"] h1').contains('Leading the way through data-sharing').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Children\'s Brain Tumor Network').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('National Heart, Lung, and Blood Institute (NHLBI) Bench to Bassinet Program: The Gabriella Miller Kids First Pediatric Research Program of the Pediatric Cardiac Genetics Consortium (PCGC)').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Kids First: Genomic Analysis of Congenital Heart Defects and Acute Lymphoblastic Leukemia in Children with Down Syndrome').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Kids First: Genomic Analysis of Congenital Diaphragmatic Hernia').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Kids First: Genetics at the Intersection of Childhood Cancer and Birth Defects').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Discovering the Genetic Basis of Human Neuroblastoma: A Gabriella Miller Kids First Pediatric Research Program (Kids First) Project').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Kids First: Genetics of Structural Defects of the Kidney and Urinary Tract').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Genomic Studies of Orofacial Cleft Birth Defects').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Comprehensive Genomic Profiling to Improve Prediction of Clinical Outcome for Children with T-cell Acute Lymphoblastic Leukemia').should('exist');
cy.get('[class*="Carousel_carouselContainer"] h4').contains('Kids First: Expanded Ewing sarcoma cohort for tumor genomics and association with DNA repair deficiencies, clinical presentation, and outcome').should('exist');
cy.get('[class*="ChartsSection_getStarted"] [class*="LandingPageTitle"]').contains('Accelerating research').should('exist');
cy.get('[class*="ChartsSection"] [class*="Mondo"] h4').contains('Most Frequent Diagnoses (MONDO)').should('exist');
cy.get('[class*="ChartsSection"] [class*="Demographic"] h4').contains('Demographics').should('exist');
cy.get('[class*="CollaboratorSection_title"] h1').contains('Advancing science through collaboration').should('exist');
cy.get('[class*="CollaboratorCard_collaboratorCard__"]').eq(0).find('h3').contains('Germline Variants').should('exist');
cy.get('[class*="CollaboratorCard_collaboratorCard__"]').eq(1).find('[src*="cavatica-login-logo"]').should('exist');
cy.get('[class*="CollaboratorCard_collaboratorCard__"]').eq(2).find('[class*="CollaboratorSection_logo"]').should('exist');
cy.get('[class*="Card_footerCard"]').eq(0).find('h1').contains('Find inspiration').should('exist');
cy.get('[class*="Card_footerCard"]').eq(1).find('h1').contains('Get answers').should('exist');
cy.get('[class*="About_row"] h4').eq(0).contains('About').should('exist');
cy.get('[class*="About_row"] h4').eq(1).contains('Resources').should('exist');
cy.get('[class*="About_row"] h4').eq(2).contains('News').should('exist');
cy.get('[class*="Socials"] [class*="LandingPageParagraph"]').contains('Follow @kidsfirstdrc').should('exist');
cy.get('[class*="About_about__"] h4').eq(3).contains('Kids First Partner Institutions').should('exist');
cy.get('[class*="Footer_legals"]').contains('© 2024 Gabriella Miller Kids First Data Resource Center. All rights reserved.').should('exist');
});
});
Binary file modified src/components/assets/chicago.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/components/assets/chop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/components/assets/chu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/components/assets/unc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/components/assets/vanderbilt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/components/assets/velsera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ const en = {
socials: {
follow: 'Follow @kidsfirstdrc',
email: 'Email kids first',
privacy: 'Privacy policy',
privacy: 'Privacy Policy',
cookies: 'Cookies',
},
legal: {
Expand Down
6 changes: 6 additions & 0 deletions src/views/LandingPage/Footer/About/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
row-gap: 24px;
}

.about .partners img {
width: 181px;
height: 80px;
object-fit: contain;
}

@media (max-width: 900px) {
.about {
flex-direction: column;
Expand Down

0 comments on commit 4c4eccb

Please sign in to comment.