Describe the bug
When I run play tests / interaction test with test-runner, they always pass even when they should not. The interactions part of the storybook however works as expected.
Additional context
Following the same steps from storybook's docs for react makes the same test fail so I have a hunch this has to do with web components.
Describe the bug When I run play tests / interaction test with test-runner, they always pass even when they should not. The interactions part of the storybook however works as expected.
To Reproduce Steps to reproduce the behavior:
pnpm storybook
pnpm run test-storybook
and pressa
to run all tests (If it prompts you to install browsers via playwright, please do so)expect(true).toBe(false)
definitely shouldn'tExpected behavior I would have expected my test to fail in the terminal
Screenshots Test doing what is expected in storybook interaction tab:
Test not working in terminal:
System System: OS: macOS 14.3.1 CPU: (10) arm64 Apple M2 Pro Shell: 5.9 - /bin/zsh Binaries: Node: 21.4.0 - ~/.nvm/versions/node/v21.4.0/bin/node Yarn: 1.22.21 - /opt/homebrew/bin/yarn npm: 10.2.4 - ~/.nvm/versions/node/v21.4.0/bin/npm pnpm: 8.15.6 - ~/.nvm/versions/node/v21.4.0/bin/pnpm <----- active Browsers: Chrome: 123.0.6312.122 Safari: 17.3.1 npmPackages: @storybook/addon-a11y: ^8.0.5 => 8.0.6 @storybook/addon-essentials: ^8.0.5 => 8.0.6 @storybook/addon-interactions: ^8.0.5 => 8.0.6 @storybook/addon-links: ^8.0.5 => 8.0.6 @storybook/addon-mdx-gfm: ^8.0.5 => 8.0.6 @storybook/blocks: ^8.0.5 => 8.0.6 @storybook/jest: ^0.2.3 => 0.2.3 @storybook/test: ^8.0.6 => 8.0.6 @storybook/test-runner: ^0.17.0 => 0.17.0 @storybook/testing-library: ^0.2.2 => 0.2.2 @storybook/web-components: ^8.0.5 => 8.0.6 @storybook/web-components-vite: ^8.0.5 => 8.0.6 storybook: ^8.0.5 => 8.0.6
Additional context Following the same steps from storybook's docs for react makes the same test fail so I have a hunch this has to do with web components.