Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/kasper/csf-factories' into kaspe…
Browse files Browse the repository at this point in the history
…r/csf-factories
  • Loading branch information
kasperpeulen committed Jan 8, 2025
2 parents 745f1b5 + ef92a43 commit 30511e9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions code/e2e-tests/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,9 @@ export class SbPage {

async waitForStoryLoaded() {
try {
// wait for the story to be visitedz
// wait for the story to be visited
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();
// Wait until there is at least one child (a story element) in the preview iframe
await root.locator(':scope > *').first().waitFor({
Expand Down

0 comments on commit 30511e9

Please sign in to comment.