Unverified Commit f57b8d2a authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

fix test/integration/app-document-remove-hmr flake (#29486)

parent 88e15a5b
...@@ -48,7 +48,7 @@ describe('_app removal HMR', () => { ...@@ -48,7 +48,7 @@ describe('_app removal HMR', () => {
await check(async () => { await check(async () => {
const html = await browser.eval('document.documentElement.innerHTML') const html = await browser.eval('document.documentElement.innerHTML')
return html.indexOf('index page updated') && return html.includes('index page updated') &&
!html.includes('custom _app') !html.includes('custom _app')
? 'success' ? 'success'
: html : html
...@@ -100,7 +100,7 @@ describe('_app removal HMR', () => { ...@@ -100,7 +100,7 @@ describe('_app removal HMR', () => {
await check(async () => { await check(async () => {
const html = await browser.eval('document.documentElement.innerHTML') const html = await browser.eval('document.documentElement.innerHTML')
return html.indexOf('index page updated') && return html.includes('index page updated') &&
!html.includes('custom _document') !html.includes('custom _document')
? 'success' ? 'success'
: html : html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment