Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojude committed Feb 6, 2025
1 parent ff1a05b commit fbd91cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/lib/next-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,10 @@ export async function getRedboxTotalErrorCount(browser: BrowserInterface) {
return parseInt(header.match(/\d+ of (\d+) issue/)?.[1], 10)
}

export function getRedboxSource(browser: BrowserInterface) {
export async function getRedboxSource(browser: BrowserInterface) {
// Wait for stack frames to be available
await browser.waitForElementByCss('[data-nextjs-call-stack-frame]')

return browser.eval(() => {
const portal = [].slice
.call(document.querySelectorAll('nextjs-portal'))
Expand Down

0 comments on commit fbd91cd

Please sign in to comment.