diff --git a/site/.storybook/main.cjs b/site/.storybook/main.cjs index 28d7fc0f7..320ec0aaf 100644 --- a/site/.storybook/main.cjs +++ b/site/.storybook/main.cjs @@ -3,6 +3,7 @@ const { loadConfigFromFile, mergeConfig } = require('vite') const reactPlugin = require('@vitejs/plugin-react') const path = require('path') const VitePWA = require('vite-plugin-pwa').VitePWA +const yaml = require('@rollup/plugin-yaml') module.exports = { stories: [ @@ -57,7 +58,8 @@ module.exports = { // Do not treat story files as HMR boundaries, storybook itself needs to handle them. exclude: [/\.stories\.([tj])sx?$/, /node_modules/], }), - VitePWA({}), + yaml(), + VitePWA({ disable: true }), ], }) diff --git a/site/cypress/integration/mon-entreprise/localisation-field.js b/site/cypress/integration/mon-entreprise/localisation-field.js index a7fa5e686..56eccbc91 100644 --- a/site/cypress/integration/mon-entreprise/localisation-field.js +++ b/site/cypress/integration/mon-entreprise/localisation-field.js @@ -10,7 +10,7 @@ describe('Champs localisation (simulateur salariƩ)', function () { it('should not crash when selecting localisation', function () { cy.contains('SMIC').click() - cy.contains('Commune').click({ force: true }) + cy.contains('[type=button]', 'Commune').click() cy.contains('Commune ou code postal') .click({ force: true }) .focused()