Skip to content

Commit

Permalink
Update flakey app logbox test (#43682)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 4, 2022
1 parent 90f022a commit 992c46e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/development/acceptance-app/ReactRefreshLogBox.test.ts
Expand Up @@ -326,6 +326,12 @@ describe('ReactRefreshLogBox app', () => {
`
)
expect(await session.hasRedbox(true)).toBe(true)

await check(async () => {
const source = await session.getRedboxSource()
return source?.length > 1 ? 'success' : source
}, 'success')

expect(await session.getRedboxSource()).toMatchSnapshot()

await cleanup()
Expand Down

0 comments on commit 992c46e

Please sign in to comment.