From 2250dccf4b9001fcedf30dc8f48580f106d2275a Mon Sep 17 00:00:00 2001 From: Alexandre Hajjar Date: Wed, 2 Jun 2021 23:18:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20Pole=20emploi=20iframe=20t?= =?UTF-8?q?est?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cypress/integration/external/external-integrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')