描述bug
当表单处于静默状态时,测试考虑您可以编写并认为它是启用的,但实际上它们失败了。
重现步骤
https://stackblitz.com/edit/github-h8mbsw?file=src%2Fstories%2FCase.stories.tsx
系统信息
Storybook Environment Info:
System:
OS: macOS 14.4.1
CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.0/bin/yarn <----- active
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
Browsers:
Chrome: 124.0.6367.201
Edge: 124.0.2478.97
Firefox: 125.0.3
Safari: 17.4.1
npmPackages:
@storybook/addon-actions: 8.0.9 => 8.0.9
@storybook/addon-essentials: 8.0.9 => 8.0.9
@storybook/addon-interactions: 8.0.9 => 8.0.9
@storybook/addon-links: 8.0.9 => 8.0.9
@storybook/react: 8.0.9 => 8.0.9
@storybook/react-vite: 8.0.9 => 8.0.9
@storybook/test: ^8.0.9 => 8.0.9
chromatic: ^11.3.0 => 11.3.0
eslint-plugin-storybook: 0.8.0 => 0.8.0
msw-storybook-addon: 2.0.0 => 2.0.0
storybook: 8.0.9 => 8.0.9
storybook-addon-pseudo-states: 3.1.0 => 3.1.0
storybook-dark-mode: 4.0.1 => 4.0.1
其他上下文
- 无响应*
4条答案
按热度按时间gdx19jrr1#
Leaving this here in case the sandbox gets deleted
qacovj5a2#
看起来问题出在这里。
ffdz8vbo3#
jsdom也有同样的问题:jsdom/jsdom#3605
ttvkxqim4#
好的,抓住了@codingedgar。看起来你已经在这里提交了它 $x_{1e0f1}x$