File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
test/development/app-dir/missing-required-html-tags Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3
3
assertHasRedbox ,
4
4
assertNoRedbox ,
5
5
getRedboxDescription ,
6
+ getRedboxTotalErrorCount ,
7
+ openRedbox ,
6
8
retry ,
7
9
} from 'next-test-utils'
8
10
import { outdent } from 'outdent'
@@ -61,7 +63,13 @@ describe('app-dir - missing required html tags', () => {
61
63
)
62
64
)
63
65
64
- await assertHasRedbox ( browser )
66
+ await openRedbox ( browser )
67
+ // 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 )
65
73
66
74
// Fix the issue again
67
75
await next . patchFile ( 'app/layout.js' , ( code ) =>
You can’t perform that action at this time.
0 commit comments