diff --git a/site/cypress/integration/mon-entreprise/simulateur-salarie.ts b/site/cypress/integration/mon-entreprise/simulateur-salarie.ts index 01ee2638f..8b6941526 100644 --- a/site/cypress/integration/mon-entreprise/simulateur-salarie.ts +++ b/site/cypress/integration/mon-entreprise/simulateur-salarie.ts @@ -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 () { diff --git a/site/source/design-system/popover/Popover.tsx b/site/source/design-system/popover/Popover.tsx index 7c32822f9..dde6ce45d 100644 --- a/site/source/design-system/popover/Popover.tsx +++ b/site/source/design-system/popover/Popover.tsx @@ -113,7 +113,7 @@ export default function Popover( }} ref={ref} aria-label={title || t('Boite de dialogue')} - title="modal" + data-cy="modal" > {props.isDismissable && (