chore: refactor e2e tests to playwright #6580
Annotations
6 errors, 5 warnings, and 1 notice
Run E2E tests for webpack version latest:
<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
|
Run E2E tests for webpack version latest:
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
|
Run E2E tests for webpack version latest:
test\helpers\playwright-test.js#L3
2) [chromium] › app.test.js:59:9 › app option › should work using "express" application and "http" server › should handle GET request to index route (/)
Error: Requiring @playwright/test second time,
First:
Error:
at ..\helpers\playwright-test.js:3
1 | "use strict";
2 |
> 3 | const { test } = require("@playwright/test");
| ^
4 |
5 | const customTest = test.extend({
6 | done: [
at Object.<anonymous> (D:\a\webpack-dev-server\webpack-dev-server\node_modules\playwright\lib\index.js:69:33)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
at Object.i.<computed>.ut._extensions.<computed> [as .js] (D:\a\webpack-dev-server\webpack-dev-server\node_modules\playwright\lib\utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Function.Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (D:\a\webpack-dev-server\webpack-dev-server\node_modules\playwright\test.js:17:13)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
at Object.i.<computed>.ut._extensions.<computed> [as .js] (D:\a\webpack-dev-server\webpack-dev-server\node_modules\playwright\lib\utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Function.Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (D:\a\webpack-dev-server\webpack-dev-server\node_modules\@playwright\test\index.js:17:18)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
at Object.i.<computed>.ut._extensions.<computed> [as .js] (D:\a\webpack-dev-server\webpack-dev-server\node_modules\playwright\lib\utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Function.Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-test.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module.f._compile (D:\a\webpack-dev-server\webpack-dev-server\node_modules\playwright\lib\utilsBundleImpl.js:16:994)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
at Object.i.<computed>.ut._extensions.<computed> [as .js] (D:\a\webpack-dev-server\webpack-dev-server\node_modules\playwright\lib\utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Function.Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\api.test.js:6:18)
at Module._compile (node:internal/modules/cjs/lo
|
Run E2E tests for webpack version latest:
test\e2e\range-header.test.js#L31
3) [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
|
Run E2E tests for webpack version latest:
test\fixtures\static-config\test\e2e\static-public-path.test.js#L479
4) [chromium] › static-public-path.test.js:505:5 › static.publicPath option › defaults to CWD › should handle request to page
TypeError: Attempted to wrap cwd which is already wrapped
at checkWrappedMethod (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\sinon\lib\sinon\util\core\wrap-method.js:67:21)
at wrapMethod (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\sinon\lib\sinon\util\core\wrap-method.js:132:13)
at Function.stub (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\sinon\lib\sinon\stub.js:130:44)
at Sandbox.stub (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\sinon\lib\sinon\sandbox.js:454:39)
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\test\e2e\static-public-path.test.js:479:22
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\fixtureRunner.js:254:13
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:297:17
at TimeoutManager.withRunnable (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\timeoutManager.js:53:34)
at TestInfoImpl._runAsStage (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:295:34)
at FixtureRunner.resolveParametersAndRunFunction (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\fixtureRunner.js:250:20)
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:588:11
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:297:11
at TimeoutManager.withRunnable (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\timeoutManager.js:41:27)
at TestInfoImpl._runAsStage (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:295:7)
at WorkerMain._runEachHooksForSuites (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:576:9)
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:317:9
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:297:11
at TimeoutManager.withRunnable (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\timeoutManager.js:41:27)
at TestInfoImpl._runAsStage (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:295:7)
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:306:7
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:297:11
at TimeoutManager.withRunnable (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\timeoutManager.js:41:27)
at TestInfoImpl._runAsStage (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:295:7)
at WorkerMain._runTest (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:278:5)
at WorkerMain.runTestGroup (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:202:11)
at process.<anonymous> (D:\a\webpack-dev-server\web
|
Run E2E tests for webpack version latest:
test\fixtures\static-config\test\e2e\static-public-path.test.js#L500
4) [chromium] › static-public-path.test.js:505:5 › static.publicPath option › defaults to CWD › should handle request to page
TypeError: Cannot read properties of undefined (reading 'restore')
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\test\e2e\static-public-path.test.js:500:14
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\fixtureRunner.js:254:13
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:297:17
at TimeoutManager.withRunnable (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\timeoutManager.js:53:34)
at TestInfoImpl._runAsStage (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:295:34)
at FixtureRunner.resolveParametersAndRunFunction (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\fixtureRunner.js:250:20)
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:588:11
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:297:11
at TimeoutManager.withRunnable (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\timeoutManager.js:41:27)
at TestInfoImpl._runAsStage (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:295:7)
at WorkerMain._runEachHooksForSuites (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:576:9)
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:379:65
at D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:297:11
at TimeoutManager.withRunnable (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\timeoutManager.js:41:27)
at TestInfoImpl._runAsStage (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\testInfo.js:295:7)
at WorkerMain._runTest (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:352:5)
at WorkerMain.runTestGroup (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\worker\workerMain.js:202:11)
at process.<anonymous> (D:\a\webpack-dev-server\webpack-dev-server\test\fixtures\static-config\node_modules\playwright\lib\common\process.js:94:22)
|
Run E2E tests for webpack version latest:
[chromium] › web-socket-server-url.test.js#L1
[chromium] › web-socket-server-url.test.js took 1.1m
|
Run E2E tests for webpack version latest:
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 43.0s
|
Run E2E tests for webpack version latest:
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 35.3s
|
Run E2E tests for webpack version latest:
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 32.8s
|
Run E2E tests for webpack version latest:
[chromium] › overlay.test.js#L1
[chromium] › overlay.test.js took 31.9s
|
Run E2E tests for webpack version latest
4 flaky
[chromium] › api.test.js:37:5 › API › WEBPACK_SERVE environment variable › should be present ───
[chromium] › app.test.js:59:9 › app option › should work using "express" application and "http" server › should handle GET request to index route (/)
[chromium] › range-header.test.js:27:3 › 'Range' header › should work with "Range" header using "GET" method
[chromium] › static-public-path.test.js:505:5 › static.publicPath option › defaults to CWD › should handle request to page
11 skipped
459 passed (9.0m)
|
Loading