pull/2787/head
Jérémy Rialland 2023-08-02 10:06:07 +02:00 committed by Jérémy Rialland
parent c063122184
commit 478fa2b57b
1 changed files with 7 additions and 0 deletions

View File

@ -6,11 +6,18 @@ describe('Champs localisation (simulateur salarié)', function () {
}
it('should not crash when selecting localisation', function () {
cy.intercept({
method: 'GET',
hostname: 'geo.api.gouv.fr',
url: '/communes*',
}).as('communes')
cy.visit(encodeURI('/simulateurs/salaire-brut-net'))
cy.contains('SMIC').click()
cy.contains('button', 'Commune').click()
cy.contains('Commune ou code postal').click({ force: true })
cy.focused().type('Steenvoorde')
cy.wait('@communes')
cy.contains('Steenvoorde (59114)').click({ force: true })
cy.contains('Suivant').click({ force: true })
cy.contains('Modifier mes réponses').click({ force: true })