Skip to content

Commit

Permalink
test: fix helper waitForTransition completing before transition
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Jul 5, 2024
1 parent f605b45 commit bda1985
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions specs/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export async function getData(page: Page, selector: string, options?: Parameters
}

export async function waitForTransition(page: Page, selector: string = '#nuxt-page.my-leave-active') {
await page.locator(selector).waitFor()
return await page.locator(selector).waitFor({ state: 'detached' })
}

Expand Down

0 comments on commit bda1985

Please sign in to comment.