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({