chore: refactor e2e tests to playwright #6634
Annotations
8 errors, 3 warnings, and 1 notice
<anonymous>#L9
1) [chromium] › api.test.js:37:5 › API › WEBPACK_SERVE environment variable › should be present ──
TypeError: The 'compilation' argument must be an instance of Compilation
at getCompilationHooks (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:168:10)
at /Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js:42:19
at Hook.eval (/Users/runner/work/webpack-dev-server/webpack-dev-server/<anonymous>:9:1)
at Hook.CALL_DELEGATE (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Compiler.js:1274:30)
at /Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Compiler.js:1319:29
at Hook.eval (/Users/runner/work/webpack-dev-server/webpack-dev-server/<anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Compiler.js:1314:28)
at /Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Watching.js:229:19
at Hook.eval (/Users/runner/work/webpack-dev-server/webpack-dev-server/<anonymous>:15:1)
at Hook.CALL_ASYNC_DELEGATE (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/tapable/lib/Hook.js:18:14)
at run (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Watching.js:173:33)
at /Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Watching.js:168:6
at Compiler.readRecords (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Compiler.js:1123:5)
at run (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Watching.js:164:26)
at Watching._go (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Watching.js:233:3)
at Watching._invalidate (/Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Watching.js:430:9)
at /Users/runner/work/webpack-dev-server/webpack-dev-server/node_modules/webpack/lib/Watching.js:70:28
|
test/e2e/api.test.js#L60
1) [chromium] › api.test.js:37:5 › API › WEBPACK_SERVE environment variable › should be present ──
Error: page.goto: net::ERR_CONNECTION_REFUSED at http://127.0.0.1:8158/
Call log:
- navigating to "http://127.0.0.1:8158/", waiting until "networkidle"
58 | expect(process.env.WEBPACK_SERVE).toBe("true");
59 |
> 60 | const response = await page.goto(`http://127.0.0.1:${port}/`, {
| ^
61 | waitUntil: "networkidle0",
62 | });
63 |
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/api.test.js:60:37
|
test/e2e/api.test.js#L1
2) [chromium] › api.test.js:439:5 › API › Server.getFreePort › should return the port when the port is `null`
Error: listen EADDRINUSE: address already in use 0.0.0.0:60001
|
test/e2e/api.test.js#L1
3) [chromium] › api.test.js:474:5 › API › Server.getFreePort › should return the port when the port is undefined
Error: listen EADDRINUSE: address already in use 0.0.0.0:60001
|
test/e2e/api.test.js#L1
4) [chromium] › api.test.js:512:5 › API › Server.getFreePort › should retry finding the port for up to defaultPortRetry times (number)
Error: listen EADDRINUSE: address already in use 0.0.0.0:60001
|
test/e2e/api.test.js#L1
5) [chromium] › api.test.js:549:5 › API › Server.getFreePort › should retry finding the port for up to defaultPortRetry times (string)
Error: listen EADDRINUSE: address already in use 0.0.0.0:60001
|
test/e2e/api.test.js#L1
6) [chromium] › api.test.js:586:5 › API › Server.getFreePort › should retry finding the port when serial ports are busy
Error: listen EADDRINUSE: address already in use 0.0.0.0:60001
|
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 34.0s
|
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 25.1s
|
[chromium] › host.test.js#L1
[chromium] › host.test.js took 18.6s
|
6 failed
[chromium] › api.test.js:37:5 › API › WEBPACK_SERVE environment variable › should be present ───
[chromium] › api.test.js:439:5 › API › Server.getFreePort › should return the port when the port is `null`
[chromium] › api.test.js:474:5 › API › Server.getFreePort › should return the port when the port is undefined
[chromium] › api.test.js:512:5 › API › Server.getFreePort › should retry finding the port for up to defaultPortRetry times (number)
[chromium] › api.test.js:549:5 › API › Server.getFreePort › should retry finding the port for up to defaultPortRetry times (string)
[chromium] › api.test.js:586:5 › API › Server.getFreePort › should retry finding the port when serial ports are busy
144 passed (2.7m)
|
This job failed
Loading