Skip to content

Commit

Permalink
test(site): Ajoute un test e2e des CGU
Browse files Browse the repository at this point in the history
  • Loading branch information
liliced committed Aug 1, 2024
1 parent 65fa45d commit e313c92
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions site/cypress/integration/mon-entreprise/footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ describe('Footer', function () {
.and('include.text', 'Mentions légales')
})

it('should contain a terms of use link', function () {
cy.visit('/')
cy.contains('footer button', "Conditions générales d'utilisation").should(
'be.visible'
)
})

it('should display the terms of use on click', function () {
cy.visit('/')
cy.contains('footer button', "Conditions générales d'utilisation").click()
cy.get('div[data-cy="modal"]')
.should('be.visible')
.and('include.text', "Conditions générales d'utilisation")
})

it('should contain a privacy policy link', function () {
cy.visit('/')
cy.contains('footer button', 'Politique de confidentialité').should(
Expand Down

0 comments on commit e313c92

Please sign in to comment.