percy / percy-storybook

Percy's Storybook SDK.
https://docs.percy.io/docs/storybook
MIT License
149 stars 45 forks source link

getStoryIndexFromServer issue with percy-storybook integration #755

Closed kxdang closed 1 year ago

kxdang commented 1 year ago

The problem

Hello,

I am trying to integrate percy to our Storybook which we recently upgraded to v7 following these steps outlined here

We ran into an issue with an error below:

[percy] Error: Protocol error (Runtime.callFunctionOn): Cannot find context with specified id

When looking at other issues regarding Storybook v7, some suggested: enableJavaScript: true

After enabling this in our percy config the snapshots started to work, however, opening up the snapshots in our generated percy link we receive this error message in the snapshot itself.

getStoryIndexFromServer@http://proxyme.percy.io/sb-preview/runtime.js:80:1192

Environment

Details

We have our storybook running locally in localhost:6006 and are trying to use the command below:

percy storybook http://localhost:6006

We see that it starts and processes our snapshots but we see errors like [percy] Error: Timed out waiting for network requests to idle.

I've also tried the --debug and --verbose with no luck

Debug logs

If you are reporting a bug, always include logs! Give the "Debugging SDKs" document a quick read for how to gather logs

Please do not trim or edit these logs, often times there are hints in the full logs that help debug what is going on.

Code to reproduce issue

N/A

kxdang commented 1 year ago

Closing issue - Storybook v7 is not supported yet with Percy.