Sometimes when we run e2e tests for dev, the part where we run the e2e "decided" to try and re-run storybook dev.
But because it's already running, the port is taken, and it errors out.
I believe there to be some race-condition.
I've tried adding an explicit wait-on step in Ci waiting for both dev to be available.
I looked into why the task system determines if dev is already running, but I couldn't find a bug.
|
const port = getDevPort(key); |
|
return (await detectFreePort(port)) !== port; |