Files
modelec.club/cypress/e2e/homeRedirections.cy.ts
2024-11-11 12:26:03 +01:00

21 lines
534 B
TypeScript

describe('Home Page Redirections', () => {
beforeEach(() => {
cy.visit('/');
});
it('should redirect to Projets page', () => {
cy.get('a[href="/projets/"]').click();
cy.url().should('include', '/projets/');
});
it('should redirect to Partenaires page', () => {
cy.get('a[href="/partenaires/"]').click();
cy.url().should('include', '/partenaires/');
});
it('should redirect to Contact page', () => {
cy.get('a[href="/contact/"]').click();
cy.url().should('include', '/contact/');
});
});