Fix storybook build fail

pull/2305/head
Jérémy Rialland 2022-10-05 15:52:05 +02:00 committed by Johan Girod
parent 860d7b4cf4
commit c4c103f013
2 changed files with 4 additions and 2 deletions

View File

@ -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 }),
],
})

View File

@ -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()