Skip to content

Commit 2bd90d1

Browse files
committed
Update assertions
1 parent fc80d27 commit 2bd90d1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/development/app-dir/missing-required-html-tags/index.test.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import {
33
assertHasRedbox,
44
assertNoRedbox,
55
getRedboxDescription,
6-
getRedboxTotalErrorCount,
7-
openRedbox,
86
retry,
97
} from 'next-test-utils'
108
import { outdent } from 'outdent'
@@ -63,22 +61,7 @@ describe('app-dir - missing required html tags', () => {
6361
)
6462
)
6563

66-
await openRedbox(browser)
6764
// TODO(NDX-768): Should show "missing tags" error
68-
expect(await getRedboxDescription(browser)).toMatchInlineSnapshot(`
69-
"In HTML, <p> cannot be a child of <#document>.
70-
This will cause a hydration error."
71-
`)
72-
expect(await getRedboxTotalErrorCount(browser)).toBe(1)
73-
74-
// Fix the issue again
75-
await next.patchFile('app/layout.js', (code) =>
76-
code.replace(
77-
'return children',
78-
'return <html><body>{children}</body></html>'
79-
)
80-
)
81-
8265
await assertNoRedbox(browser)
8366
})
8467
})

0 commit comments

Comments
 (0)