diff --git a/cypress/e2e/homeRedirections.cy.ts b/cypress/e2e/homeRedirections.cy.ts index ed0f488..d334908 100644 --- a/cypress/e2e/homeRedirections.cy.ts +++ b/cypress/e2e/homeRedirections.cy.ts @@ -4,17 +4,17 @@ describe('Home Page Redirections', () => { }); it('should redirect to Projets page', () => { - cy.get('a[href="/projets/"]').click(); + cy.get('a[href="/projets/"]').first().click(); cy.url().should('include', '/projets/'); }); it('should redirect to Partenaires page', () => { - cy.get('a[href="/partenaires/"]').click(); + cy.get('a[href="/partenaires/"]').first().click(); cy.url().should('include', '/partenaires/'); }); it('should redirect to Contact page', () => { - cy.get('a[href="/contact/"]').click(); + cy.get('a[href="/contact/"]').first().click(); cy.url().should('include', '/contact/'); }); }); diff --git a/cypress/screenshots/base.cy.ts/Class and Component Presence Test -- Checks if specific classes and components are present (failed).png b/cypress/screenshots/base.cy.ts/Class and Component Presence Test -- Checks if specific classes and components are present (failed).png index a809e0f..b2a2113 100644 Binary files a/cypress/screenshots/base.cy.ts/Class and Component Presence Test -- Checks if specific classes and components are present (failed).png and b/cypress/screenshots/base.cy.ts/Class and Component Presence Test -- Checks if specific classes and components are present (failed).png differ diff --git a/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Contact page (failed).png b/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Contact page (failed).png index fed2b64..5da85b3 100644 Binary files a/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Contact page (failed).png and b/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Contact page (failed).png differ diff --git a/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Partenaires page (failed).png b/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Partenaires page (failed).png index 3d03a88..646f6b8 100644 Binary files a/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Partenaires page (failed).png and b/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Partenaires page (failed).png differ diff --git a/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Projets page (failed).png b/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Projets page (failed).png index c034063..3b9624a 100644 Binary files a/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Projets page (failed).png and b/cypress/screenshots/homeRedirections.cy.ts/Home Page Redirections -- should redirect to Projets page (failed).png differ