chore: refactor e2e tests to playwright #6634
Annotations
6 errors, 5 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 (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\javascript\JavascriptModulesPlugin.js:168:10)
at D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\javascript\ArrayPushCallbackChunkFormatPlugin.js:42:19
at Hook.eval (D:\a\webpack-dev-server\webpack-dev-server\<anonymous>:9:1)
at Hook.CALL_DELEGATE (D:\a\webpack-dev-server\webpack-dev-server\node_modules\tapable\lib\Hook.js:14:14)
at Compiler.newCompilation (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Compiler.js:1274:30)
at D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Compiler.js:1319:29
at Hook.eval (D:\a\webpack-dev-server\webpack-dev-server\<anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE (D:\a\webpack-dev-server\webpack-dev-server\node_modules\tapable\lib\Hook.js:18:14)
at Compiler.compile (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Compiler.js:1314:28)
at D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Watching.js:229:19
at Hook.eval (D:\a\webpack-dev-server\webpack-dev-server\<anonymous>:15:1)
at Hook.CALL_ASYNC_DELEGATE (D:\a\webpack-dev-server\webpack-dev-server\node_modules\tapable\lib\Hook.js:18:14)
at run (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Watching.js:173:33)
at D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Watching.js:168:6
at Compiler.readRecords (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Compiler.js:1123:5)
at run (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Watching.js:164:26)
at Watching._go (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Watching.js:233:3)
at Watching._invalidate (D:\a\webpack-dev-server\webpack-dev-server\node_modules\webpack\lib\Watching.js:430:9)
at D:\a\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 D:\a\webpack-dev-server\webpack-dev-server\test\e2e\api.test.js:60:37
|
test\e2e\range-header.test.js#L31
2) [chromium] › range-header.test.js:27:3 › 'Range' header › should work with "Range" header using "GET" method
Error: expect(received).toBe(expected) // Object.is equality
Expected: "application/javascript; charset=utf-8"
Received: "text/plain; charset=utf-8"
29 |
30 | expect(response.status).toBe(200);
> 31 | expect(response.headers["content-type"]).toBe(
| ^
32 | "application/javascript; charset=utf-8",
33 | );
34 | expect(response.headers["accept-ranges"]).toBe("bytes");
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\range-header.test.js:31:46
|
test\e2e\static-directory.test.js#L1
3) [chromium] › static-directory.test.js:100:5 › static.directory option › to directory › Watches folder recursively
Tearing down "done" exceeded the test timeout of 30000ms.
|
test\e2e\static-directory.test.js#L1
4) [chromium] › static-directory.test.js:113:5 › static.directory option › to directory › Watches node_modules
Tearing down "done" exceeded the test timeout of 30000ms.
|
|
[chromium] › web-socket-server-url.test.js#L1
[chromium] › web-socket-server-url.test.js took 55.9s
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 42.5s
|
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 32.4s
|
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 31.1s
|
[chromium] › overlay.test.js#L1
[chromium] › overlay.test.js took 26.7s
|
4 failed
[chromium] › api.test.js:37:5 › API › WEBPACK_SERVE environment variable › should be present ───
[chromium] › range-header.test.js:27:3 › 'Range' header › should work with "Range" header using "GET" method
[chromium] › static-directory.test.js:100:5 › static.directory option › to directory › Watches folder recursively
[chromium] › static-directory.test.js:113:5 › static.directory option › to directory › Watches node_modules
7 skipped
466 passed (8.9m)
|
This job failed
Loading