Skip to content

Commit 0211f3b

Browse files
committed
test: log html
1 parent 5bd4ba7 commit 0211f3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/integration/render-error-on-module-error/test/index.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ describe('Module Init Error', () => {
3636
const browser = await webdriver(appPort, '/')
3737
try {
3838
await waitFor(2000)
39+
40+
const html = await browser.eval('document.body.innerHTML')
41+
expect(html).toMatch(/An unexpected error has occurred/i)
42+
3943
const text = await browser.elementByCss('#error-p').text()
4044
expect(text).toBe('Error Rendered')
4145
} finally {

0 commit comments

Comments
 (0)