chore: refactor e2e tests to playwright #6571
Annotations
10 errors, 3 warnings, and 1 notice
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L641
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
639 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
640 |
> 641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
642 |
643 | const responseHead = await page.evaluate(async () => {
644 | const response = await fetch("/foo", { method: "HEAD" });
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:641:34)
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L643
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Error: page.evaluate: Test ended.
641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
642 |
> 643 | const responseHead = await page.evaluate(async () => {
| ^
644 | const response = await fetch("/foo", { method: "HEAD" });
645 |
646 | return {
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:643:41)
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L641
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium-retry1\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
639 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
640 |
> 641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
642 |
643 | const responseHead = await page.evaluate(async () => {
644 | const response = await fetch("/foo", { method: "HEAD" });
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:641:34)
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L643
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: Test ended.
641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
642 |
> 643 | const responseHead = await page.evaluate(async () => {
| ^
644 | const response = await fetch("/foo", { method: "HEAD" });
645 |
646 | return {
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:643:41)
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L641
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium-retry2\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
639 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
640 |
> 641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
642 |
643 | const responseHead = await page.evaluate(async () => {
644 | const response = await fetch("/foo", { method: "HEAD" });
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:641:34)
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L643
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: Test ended.
641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
642 |
> 643 | const responseHead = await page.evaluate(async () => {
| ^
644 | const response = await fetch("/foo", { method: "HEAD" });
645 |
646 | return {
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:643:41)
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L641
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium-retry3\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
639 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
640 |
> 641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
642 |
643 | const responseHead = await page.evaluate(async () => {
644 | const response = await fetch("/foo", { method: "HEAD" });
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:641:34)
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L643
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: Test ended.
641 | expect(responseGet.text).toMatchSnapshotWithArray("text");
642 |
> 643 | const responseHead = await page.evaluate(async () => {
| ^
644 | const response = await fetch("/foo", { method: "HEAD" });
645 |
646 | return {
at test.timeout (D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:643:41)
|
Run E2E tests for webpack version latest:
<anonymous>#L9
2) [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
2) [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:
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 43.0s
|
Run E2E tests for webpack version latest:
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 38.6s
|
Run E2E tests for webpack version latest:
[chromium] › host.test.js#L1
[chromium] › host.test.js took 25.3s
|
Run E2E tests for webpack version latest
1 failed
[chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
2 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 (/)
145 passed (3.8m)
|
Loading