fix(site): Enlève l'affichage de 'modal' au survol d'une modale

pull/3047/head
Alice Dahan 2024-07-22 15:26:09 +02:00 committed by liliced
parent bef003246f
commit d8db3dbf8b
2 changed files with 6 additions and 6 deletions

View File

@ -9,17 +9,17 @@ describe('Simulateur salarié : part time contract', function () {
cy.visit(encodeURI('/simulateurs/salaire-brut-net'))
cy.get('button').contains('SMIC').click()
cy.contains('Modifier mes réponses').click()
cy.get('div[title="modal"]')
cy.get('div[data-cy="modal"]')
.eq(0)
.contains('Temps partiel')
.next()
.find('button')
.click()
cy.get('div[title="modal"]').eq(1).contains('Fermer')
cy.get('div[title="modal"]').eq(1).contains('Oui').click()
cy.get('div[title="modal"]').eq(1).contains('Continuer').click()
cy.get('div[title="modal"]').eq(0).contains('Fermer').click()
cy.get('div[data-cy="modal"]').eq(1).contains('Fermer')
cy.get('div[data-cy="modal"]').eq(1).contains('Oui').click()
cy.get('div[data-cy="modal"]').eq(1).contains('Continuer').click()
cy.get('div[data-cy="modal"]').eq(0).contains('Fermer').click()
})
it('should permit selecting the smic before part-time contrat', function () {

View File

@ -113,7 +113,7 @@ export default function Popover(
}}
ref={ref}
aria-label={title || t('Boite de dialogue')}
title="modal"
data-cy="modal"
>
{props.isDismissable && (
<CloseButtonContainer>