You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Storybook v8.5 with Cypress for end-to-end (E2E) tests, the first test always fails, irrespective of the test content. Subsequent tests execute and pass as expected. The failure occurs because the Storybook server does not appear to be running for the first test, displaying a white screen. However, the server is loaded for the second test onward.
Reproduction link
N/A
Reproduction steps
Use the following nx script for running E2E tests:
Run the e2e target.
3a. The first test fails, displaying a white screen when running from localhost on port 4400.
3b. Logged errors: CypressError:cy.visit() failed trying to load: We attempted to make an http request to this URL but the request failed without a response. Error: ESOCKETTIMEDOUT
The subsequent tests complete successfully.
System
macOS: "15.0.1"
nx: "20.2.2"
cypress: "13.17.0"
Additional context
This still occurs when the first test is removed and the next available test is bumped up to run first.
Updating just the storybook package to v8.5 is fine, this issues occurs when updating the storybook addon packages to:
Upgrading from 8.4.7
Using start-server-and-test to start the server, so should have gotten a 200 response from the server before continuing I believe.
Describe the bug
When running Storybook v8.5 with Cypress for end-to-end (E2E) tests, the first test always fails, irrespective of the test content. Subsequent tests execute and pass as expected. The failure occurs because the Storybook server does not appear to be running for the first test, displaying a white screen. However, the server is loaded for the second test onward.
Reproduction link
N/A
Reproduction steps
3a. The first test fails, displaying a white screen when running from localhost on port 4400.
3b. Logged errors:
CypressError:
cy.visit()failed trying to load:
We attempted to make an http request to this URL but the request failed without a response.
Error: ESOCKETTIMEDOUT
System
Additional context
This still occurs when the first test is removed and the next available test is bumped up to run first.
Updating just the storybook package to v8.5 is fine, this issues occurs when updating the storybook addon packages to:
The text was updated successfully, but these errors were encountered: