Turns out there's a race-condition where if the browser hasn't finished loading all resources, but the request for getting the stats are both in, the browser is closed, which causes the goto() method to reject, because it's still waiting for the window.onload event.
📦 Published PR as canary version: 0.7.6--canary.18.9b6563c.0
:sparkles: Test out this PR locally via:
```bash
npm install @storybook/bench@0.7.6--canary.18.9b6563c.0
# or
yarn add @storybook/bench@0.7.6--canary.18.9b6563c.0
```
Version
Published prerelease version: v1.0.0-next.4
Changelog
#### 💥 Breaking Change
- upgrades and add a handling for storybook7 which has no main.js for the manager [#12](https://github.com/storybookjs/bench/pull/12) ([@shilman](https://github.com/shilman) [@ndelangen](https://github.com/ndelangen))
- Replace puppeteer with playwright [#11](https://github.com/storybookjs/bench/pull/11) ([@shilman](https://github.com/shilman) [@ndelangen](https://github.com/ndelangen))
#### 🐛 Bug Fix
- Fix: race condition when there is still resources to load [#18](https://github.com/storybookjs/bench/pull/18) ([@ndelangen](https://github.com/ndelangen))
- Use next version of addon-bench [#17](https://github.com/storybookjs/bench/pull/17) ([@shilman](https://github.com/shilman))
- Fix triple-counting manager size [#16](https://github.com/storybookjs/bench/pull/16) ([@shilman](https://github.com/shilman))
- Fix support for main.cjs [#14](https://github.com/storybookjs/bench/pull/14) ([@shilman](https://github.com/shilman))
- Fix handling of millisecond startup time [#13](https://github.com/storybookjs/bench/pull/13) ([@shilman](https://github.com/shilman))
#### Authors: 2
- Michael Shilman ([@shilman](https://github.com/shilman))
- Norbert de Langen ([@ndelangen](https://github.com/ndelangen))
I ran into this error:
here: https://app.circleci.com/pipelines/github/storybookjs/storybook/36404/workflows/17fcb81c-4445-4833-93a4-9509e6d2e0be
Turns out there's a race-condition where if the browser hasn't finished loading all resources, but the request for getting the stats are both in, the browser is closed, which causes the
goto()
method to reject, because it's still waiting for thewindow.onload
event.📦 Published PR as canary version:
0.7.6--canary.18.9b6563c.0
:sparkles: Test out this PR locally via: ```bash npm install @storybook/bench@0.7.6--canary.18.9b6563c.0 # or yarn add @storybook/bench@0.7.6--canary.18.9b6563c.0 ```
Version
Published prerelease version:
v1.0.0-next.4
Changelog
#### 💥 Breaking Change - upgrades and add a handling for storybook7 which has no main.js for the manager [#12](https://github.com/storybookjs/bench/pull/12) ([@shilman](https://github.com/shilman) [@ndelangen](https://github.com/ndelangen)) - Replace puppeteer with playwright [#11](https://github.com/storybookjs/bench/pull/11) ([@shilman](https://github.com/shilman) [@ndelangen](https://github.com/ndelangen)) #### 🐛 Bug Fix - Fix: race condition when there is still resources to load [#18](https://github.com/storybookjs/bench/pull/18) ([@ndelangen](https://github.com/ndelangen)) - Use next version of addon-bench [#17](https://github.com/storybookjs/bench/pull/17) ([@shilman](https://github.com/shilman)) - Fix triple-counting manager size [#16](https://github.com/storybookjs/bench/pull/16) ([@shilman](https://github.com/shilman)) - Fix support for main.cjs [#14](https://github.com/storybookjs/bench/pull/14) ([@shilman](https://github.com/shilman)) - Fix handling of millisecond startup time [#13](https://github.com/storybookjs/bench/pull/13) ([@shilman](https://github.com/shilman)) #### Authors: 2 - Michael Shilman ([@shilman](https://github.com/shilman)) - Norbert de Langen ([@ndelangen](https://github.com/ndelangen))