mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 03:51:08 +08:00
revert workaround
This commit is contained in:
parent
49353cbab6
commit
ef92a43608
@ -87,14 +87,9 @@ export class SbPage {
|
|||||||
|
|
||||||
async waitForStoryLoaded() {
|
async waitForStoryLoaded() {
|
||||||
try {
|
try {
|
||||||
// wait for the story to be visitedz
|
// wait for the story to be visited
|
||||||
await this.page.waitForURL((url) => url.search.includes(`path`));
|
await this.page.waitForURL((url) => url.search.includes(`path`));
|
||||||
|
|
||||||
// TODO: Remove this once docs are actually working
|
|
||||||
if (this.page.url().includes('/docs/')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const root = this.previewRoot();
|
const root = this.previewRoot();
|
||||||
// Wait until there is at least one child (a story element) in the preview iframe
|
// Wait until there is at least one child (a story element) in the preview iframe
|
||||||
await root.locator(':scope > *').first().waitFor({
|
await root.locator(':scope > *').first().waitFor({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user