Skip to content

Commit

Permalink
Update assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Feb 9, 2025
1 parent fc80d27 commit 2bd90d1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/development/app-dir/missing-required-html-tags/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import {
assertHasRedbox,
assertNoRedbox,
getRedboxDescription,
getRedboxTotalErrorCount,
openRedbox,
retry,
} from 'next-test-utils'
import { outdent } from 'outdent'
Expand Down Expand Up @@ -63,22 +61,7 @@ describe('app-dir - missing required html tags', () => {
)
)

await openRedbox(browser)
// TODO(NDX-768): Should show "missing tags" error
expect(await getRedboxDescription(browser)).toMatchInlineSnapshot(`
"In HTML, <p> cannot be a child of <#document>.
This will cause a hydration error."
`)
expect(await getRedboxTotalErrorCount(browser)).toBe(1)

// Fix the issue again
await next.patchFile('app/layout.js', (code) =>
code.replace(
'return children',
'return <html><body>{children}</body></html>'
)
)

await assertNoRedbox(browser)
})
})

0 comments on commit 2bd90d1

Please # to comment.