From f94344ece7677260b906091e46b7000cea530a53 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 2 Feb 2022 15:00:42 +0530 Subject: [PATCH] test: migrate stats test on `HTMLGeneratorPlugin` --- test/e2e/stats.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/stats.test.js b/test/e2e/stats.test.js index 5e4e32d511..6d10a54f6d 100644 --- a/test/e2e/stats.test.js +++ b/test/e2e/stats.test.js @@ -3,6 +3,7 @@ const webpack = require("webpack"); const Server = require("../../lib/Server"); const config = require("../fixtures/client-config/webpack.config"); +const HTMLGeneratorPlugin = require("../helpers/html-generator-plugin"); const runBrowser = require("../helpers/run-browser"); const port = require("../ports-map").stats; @@ -76,6 +77,7 @@ describe("stats", () => { ); }, }, + new HTMLGeneratorPlugin(), ], stats: { warningsFilter: /Warning from compilation/ }, }, @@ -99,6 +101,7 @@ describe("stats", () => { ); }, }, + new HTMLGeneratorPlugin(), ], ignoreWarnings: [/Warning from compilation/], }, @@ -123,7 +126,7 @@ describe("stats", () => { consoleMessages.push(message); }); - await page.goto(`http://localhost:${port}/main`, { + await page.goto(`http://localhost:${port}/`, { waitUntil: "networkidle0", });