From 1120f574e62b9f1799bb6a30f1cd91fa3fee924b Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 15 Nov 2018 14:12:38 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9pare=20cypress.io?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :bug: répare cypress.io :bug: répare cypress.io :bug: répare cypress.io :bug: répare cypress.io :bug: répare cypress.io --- cypress/integration/embauche/embauche.js | 10 ---------- cypress/integration/embauche/iframe.js | 8 ++++++++ source/webpack.prod.js | 3 ++- 3 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 cypress/integration/embauche/iframe.js diff --git a/cypress/integration/embauche/embauche.js b/cypress/integration/embauche/embauche.js index 767981748..98a4c9e5c 100644 --- a/cypress/integration/embauche/embauche.js +++ b/cypress/integration/embauche/embauche.js @@ -42,13 +42,3 @@ describe('Simulation saving test', function() { salaryInput('Salaire net').should('have.value', '5471') }) }) - -describe('Iframe integration test', function() { - it('should display an iframe of the simulateur', function() { - cy.visit('/integration-test') - cy.get('#simulateurEmbauche') - .iframe() - .contains('Entrez un salaire mensuel') - cy.debug() - }) -}) diff --git a/cypress/integration/embauche/iframe.js b/cypress/integration/embauche/iframe.js new file mode 100644 index 000000000..372731685 --- /dev/null +++ b/cypress/integration/embauche/iframe.js @@ -0,0 +1,8 @@ +describe('Iframe integration test', function() { + it('should display an iframe of the simulateur', function() { + cy.visit('/integration-test') + cy.get('#simulateurEmbauche') + .iframe() + .contains('Entrez un salaire mensuel') + }) +}) diff --git a/source/webpack.prod.js b/source/webpack.prod.js index 21f5e597a..b1ceb8c55 100644 --- a/source/webpack.prod.js +++ b/source/webpack.prod.js @@ -75,12 +75,13 @@ module.exports = { } ], navigateFallback: '/fallback', + navigateFallbackWhitelist: [/^\/[^_]+$/], // fallback for anything that doesn't start with navigateFallbackBlacklist: [ /.*\?s=.*$/, /^\/stats/, /^\/robots\.txt$/, /^\/sitemap\.infrance\.fr\.txt$/, - /^\/sitemap\.infrance\.en\.txt$/ + /^\/sitemap\.infrance\.en\.txt$/, ] }), new PrerenderSPAPlugin({