Skip to content

Commit

Permalink
test: fix stability (#3661)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 17, 2021
1 parent 22b1414 commit d8bdd03
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/e2e/web-socket-server-url.test.js
Expand Up @@ -2213,6 +2213,15 @@ describe("web socket server URL", () => {
await page.goto(`http://localhost:${port1}/main`, {
waitUntil: "networkidle0",
});
await new Promise((resolve) => {
const interval = setInterval(() => {
if (consoleMessages.includes("[webpack-dev-server] Disconnected!")) {
clearInterval(interval);

resolve();
}
}, 100);
});

expect(consoleMessages).toMatchSnapshot("console messages");
expect(
Expand Down

0 comments on commit d8bdd03

Please sign in to comment.