From 60464eb821cb904ff34a65de20fa0020d2ff54fa Mon Sep 17 00:00:00 2001 From: BreizhHardware Date: Thu, 17 Oct 2024 11:16:28 +0200 Subject: [PATCH] Improve cypress --- cypress/integration/app_spec.js | 4 ++++ src/components/Card.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/integration/app_spec.js b/cypress/integration/app_spec.js index cdeaacf..08b2b16 100644 --- a/cypress/integration/app_spec.js +++ b/cypress/integration/app_spec.js @@ -15,4 +15,8 @@ describe('App Component', () => { failureThresholdType: 'percent', // type de tolĂ©rance (peut ĂȘtre 'pixel' ou 'percent') }); }); + + it('should render the Card component', () => { + cy.get('[data-testid="card"]').should('exist'); + }); }); \ No newline at end of file diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 1c327da..f884a62 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -20,7 +20,7 @@ function Card({name, social: {github, twitter, linkedin, mail}}: CardProps){ const profile = `https://1.gravatar.com/avatar/4d43af207280d1d23e2a2905577c7b6167723fec2d33f946cc86f114c1a85b8d?size=256`; const { t } = useTranslation(); return ( -
+