test(site): Ajoute un test e2e des CGU

pull/3045/head
Alice Dahan 2024-07-23 17:34:01 +02:00 committed by liliced
parent 65fa45d2a2
commit e313c92901
1 changed files with 15 additions and 0 deletions

View File

@ -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(