Skip to content

Commit

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

await assertHasRedbox(browser)
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) =>
Expand Down

0 comments on commit aae2bd5

Please sign in to comment.