diff --git a/mon-entreprise/cypress/integration/external/external-integrations.js b/mon-entreprise/cypress/integration/external/external-integrations.js index b5613e51e..0632104dc 100644 --- a/mon-entreprise/cypress/integration/external/external-integrations.js +++ b/mon-entreprise/cypress/integration/external/external-integrations.js @@ -1,7 +1,7 @@ describe('Pole emploi', function () { it('should display an iframe of the simulateur', function () { cy.on('uncaught:exception', (err) => { - return !err.message.contains('Unexpected token <') + return !err.message.includes("Unexpected token '<'") }) cy.visit('https://entreprise.pole-emploi.fr/cout-salarie/') cy.get('#simulateurEmbauche').iframe().contains('Salaire net')