Skip to content

Commit 5d2f834

Browse files
authored
test: migrate client.transport tests on HTMLGeneratorPlugin (#4201)
1 parent 5a7718c commit 5d2f834

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

test/e2e/server-and-client-transport.test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("server and client transport", () => {
2828
consoleMessages.push(message);
2929
});
3030

31-
await page.goto(`http://localhost:${port}/main`, {
31+
await page.goto(`http://localhost:${port}/`, {
3232
waitUntil: "networkidle0",
3333
});
3434

@@ -61,7 +61,7 @@ describe("server and client transport", () => {
6161
consoleMessages.push(message);
6262
});
6363

64-
await page.goto(`http://localhost:${port}/main`, {
64+
await page.goto(`http://localhost:${port}/`, {
6565
waitUntil: "networkidle0",
6666
});
6767

@@ -96,7 +96,7 @@ describe("server and client transport", () => {
9696
consoleMessages.push(message);
9797
});
9898

99-
await page.goto(`http://localhost:${port}/main`, {
99+
await page.goto(`http://localhost:${port}/`, {
100100
waitUntil: "networkidle0",
101101
});
102102

@@ -129,7 +129,7 @@ describe("server and client transport", () => {
129129
consoleMessages.push(message);
130130
});
131131

132-
await page.goto(`http://localhost:${port}/main`, {
132+
await page.goto(`http://localhost:${port}/`, {
133133
waitUntil: "networkidle0",
134134
});
135135

@@ -164,7 +164,7 @@ describe("server and client transport", () => {
164164
consoleMessages.push(message);
165165
});
166166

167-
await page.goto(`http://localhost:${port}/main`, {
167+
await page.goto(`http://localhost:${port}/`, {
168168
waitUntil: "networkidle0",
169169
});
170170

@@ -200,7 +200,7 @@ describe("server and client transport", () => {
200200
consoleMessages.push(message);
201201
});
202202

203-
await page.goto(`http://localhost:${port}/main`, {
203+
await page.goto(`http://localhost:${port}/`, {
204204
waitUntil: "networkidle0",
205205
});
206206

@@ -238,7 +238,7 @@ describe("server and client transport", () => {
238238
consoleMessages.push(message);
239239
});
240240

241-
await page.goto(`http://localhost:${port}/main`, {
241+
await page.goto(`http://localhost:${port}/`, {
242242
waitUntil: "networkidle0",
243243
});
244244

@@ -274,7 +274,7 @@ describe("server and client transport", () => {
274274
consoleMessages.push(message);
275275
});
276276

277-
await page.goto(`http://localhost:${port}/main`, {
277+
await page.goto(`http://localhost:${port}/`, {
278278
waitUntil: "networkidle0",
279279
});
280280

@@ -312,7 +312,7 @@ describe("server and client transport", () => {
312312
consoleMessages.push(message);
313313
});
314314

315-
await page.goto(`http://localhost:${port}/main`, {
315+
await page.goto(`http://localhost:${port}/`, {
316316
waitUntil: "networkidle0",
317317
});
318318

@@ -403,7 +403,7 @@ describe("server and client transport", () => {
403403
consoleMessages.push(message);
404404
});
405405

406-
await page.goto(`http://localhost:${port}/main`, {
406+
await page.goto(`http://localhost:${port}/`, {
407407
waitUntil: "networkidle0",
408408
});
409409

@@ -439,7 +439,7 @@ describe("server and client transport", () => {
439439
consoleMessages.push(message);
440440
});
441441

442-
await page.goto(`http://localhost:${port}/main`, {
442+
await page.goto(`http://localhost:${port}/`, {
443443
waitUntil: "networkidle0",
444444
});
445445

@@ -475,7 +475,7 @@ describe("server and client transport", () => {
475475
consoleMessages.push(message);
476476
});
477477

478-
await page.goto(`http://localhost:${port}/main`, {
478+
await page.goto(`http://localhost:${port}/`, {
479479
waitUntil: "networkidle0",
480480
});
481481

@@ -513,7 +513,7 @@ describe("server and client transport", () => {
513513
consoleMessages.push(message);
514514
});
515515

516-
await page.goto(`http://localhost:${port}/main`, {
516+
await page.goto(`http://localhost:${port}/`, {
517517
waitUntil: "networkidle0",
518518
});
519519

test/fixtures/provide-plugin-custom/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22

33
const webpack = require("webpack");
4+
const HTMLGeneratorPlugin = require("../../helpers/html-generator-plugin");
45

56
const isWebpack5 = webpack.version.startsWith("5");
67

@@ -23,4 +24,5 @@ module.exports = {
2324
: {
2425
level: "info",
2526
},
27+
plugins: [new HTMLGeneratorPlugin()],
2628
};

test/fixtures/provide-plugin-default/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22

33
const webpack = require("webpack");
4+
const HTMLGeneratorPlugin = require("../../helpers/html-generator-plugin");
45

56
const isWebpack5 = webpack.version.startsWith("5");
67

@@ -23,4 +24,5 @@ module.exports = {
2324
: {
2425
level: "info",
2526
},
27+
plugins: [new HTMLGeneratorPlugin()],
2628
};

test/fixtures/provide-plugin-sockjs-config/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22

33
const webpack = require("webpack");
4+
const HTMLGeneratorPlugin = require("../../helpers/html-generator-plugin");
45

56
const isWebpack5 = webpack.version.startsWith("5");
67

@@ -23,4 +24,5 @@ module.exports = {
2324
: {
2425
level: "info",
2526
},
27+
plugins: [new HTMLGeneratorPlugin()],
2628
};

test/fixtures/provide-plugin-ws-config/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22

33
const webpack = require("webpack");
4+
const HTMLGeneratorPlugin = require("../../helpers/html-generator-plugin");
45

56
const isWebpack5 = webpack.version.startsWith("5");
67

@@ -23,4 +24,5 @@ module.exports = {
2324
: {
2425
level: "info",
2526
},
27+
plugins: [new HTMLGeneratorPlugin()],
2628
};

0 commit comments

Comments
 (0)