Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jul 14, 2020
1 parent 326b3f7 commit 778c5af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/integration/worker-loader/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export default function Home() {

return (
<main>
<h2 className="title">$RefreshRegistry repro</h2>
<div className="web-status">Web: {expensiveWebStatus}</div>
<div className="worker-status">Worker: {expensiveWorkerStatus}</div>
<h1>$RefreshRegistry repro</h1>
<div id="web-status">Web: {expensiveWebStatus}</div>
<div id="worker-status">Worker: {expensiveWorkerStatus}</div>
</main>
)
}
6 changes: 4 additions & 2 deletions test/integration/worker-loader/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ describe('Web Workers with Fast Refresh', () => {
let browser
try {
browser = await webdriver(context.appPort, '/')
await check(() => browser.elementByCss('#web-status'), /PASS/i)
await check(() => browser.elementByCss('#worker-status'), /PASS/i)
await browser.waitForElementByCss('#web-status')
await check(() => browser.elementByCss('#web-status').text(), /PASS/i)
await browser.waitForElementByCss('#worker-status')
await check(() => browser.elementByCss('#worker-status').text(), /PASS/i)
} finally {
if (browser) {
await browser.close()
Expand Down

0 comments on commit 778c5af

Please sign in to comment.