Open bastiengrignon opened 1 year ago
I made a interaction test with Storybook, it passes without errors on Storybook but when I want to run this test using storybook test-runner I've got an error.
@storybook/addon-a11y: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/addon-actions: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/addon-coverage: ^0.0.8 => 0.0.8 @storybook/addon-essentials: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/addon-interactions: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/addon-links: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/addon-viewport: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/blocks: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/jest: ^0.0.11-next.0 => 0.0.11-next.0 @storybook/react: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/react-vite: ^7.0.0-beta.53 => 7.0.0-beta.53 @storybook/test-runner: ^0.10.0-next.8 => 0.10.0-next.8 @storybook/testing-library: ^0.0.14-next.1 => 0.0.14-next.1
The runner shouldn't throw an error
My code : The test that pass on Storybook : The test that fail on storybook-runner :
OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
Node.js version: 16.19.1
NPM version: 1.22.19
Browser (if applicable): Chrome
Browser version (if applicable): 109.0.5414.74
Device (if applicable): Dell XPS-15-9500
Add any other context about the problem here.
I have the same issue working in the UI but not in the test runner
Figured my problem out. The runner assumes a certain viewport size. I had to create a preRender to set it based on the params
Describe the bug
I made a interaction test with Storybook, it passes without errors on Storybook but when I want to run this test using storybook test-runner I've got an error.
Steps to reproduce the behavior
Expected behavior
The runner shouldn't throw an error
Screenshots and/or logs
My code : The test that pass on Storybook : The test that fail on storybook-runner :
Environment
OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
Node.js version: 16.19.1
NPM version: 1.22.19
Browser (if applicable): Chrome
Browser version (if applicable): 109.0.5414.74
Device (if applicable): Dell XPS-15-9500
Additional context
Add any other context about the problem here.