Skip to content

Commit

Permalink
fix test/integration/app-document-remove-hmr flake (#29486)
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra authored Sep 29, 2021
1 parent 88e15a5 commit f57b8d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/app-document-remove-hmr/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('_app removal HMR', () => {

await check(async () => {
const html = await browser.eval('document.documentElement.innerHTML')
return html.indexOf('index page updated') &&
return html.includes('index page updated') &&
!html.includes('custom _app')
? 'success'
: html
Expand Down Expand Up @@ -100,7 +100,7 @@ describe('_app removal HMR', () => {

await check(async () => {
const html = await browser.eval('document.documentElement.innerHTML')
return html.indexOf('index page updated') &&
return html.includes('index page updated') &&
!html.includes('custom _document')
? 'success'
: html
Expand Down

0 comments on commit f57b8d2

Please sign in to comment.