Fix storybook build fail
parent
860d7b4cf4
commit
c4c103f013
|
@ -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 }),
|
||||
],
|
||||
})
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue