mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Wait for PreviewWeb.extract
in extract script
This commit is contained in:
parent
db60041745
commit
c49fbf093c
@ -12,7 +12,7 @@ const read = async (url: string) => {
|
||||
await page.goto(url);
|
||||
|
||||
await page.waitForFunction(
|
||||
'window.__STORYBOOK_STORY_STORE__ && window.__STORYBOOK_STORY_STORE__.extract && window.__STORYBOOK_STORY_STORE__.extract()'
|
||||
'window.__STORYBOOK_PREVIEW__ && window.__STORYBOOK_PREVIEW__.extract && window.__STORYBOOK_PREVIEW__.extract()'
|
||||
);
|
||||
const data = JSON.parse(
|
||||
await page.evaluate(async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user