Skip to content

Commit

Permalink
Merge branch 'canary' into next-docs-hg3g
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira committed Jan 18, 2024
2 parents 1cf84b1 + 486567d commit 0ce4394
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions test/lib/development-sandbox.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
getRedboxComponentStack,
getRedboxDescription,
getRedboxHeader,
getRedboxSource,
Expand Down Expand Up @@ -131,18 +132,7 @@ export async function sandbox(
return source
},
async getRedboxComponentStack() {
await browser.waitForElementByCss(
'[data-nextjs-component-stack-frame]',
30000
)
const componentStackFrameElements = await browser.elementsByCss(
'[data-nextjs-component-stack-frame]'
)
const componentStackFrameTexts = await Promise.all(
componentStackFrameElements.map((f) => f.innerText())
)

return componentStackFrameTexts.join('\n')
return getRedboxComponentStack(browser)
},
async waitForAndOpenRuntimeError() {
return browser.waitForElementByCss('[data-nextjs-toast]').click()
Expand Down

0 comments on commit 0ce4394

Please sign in to comment.