chore: refactor e2e tests to playwright #6549
Annotations
10 errors, 1 warning, and 1 notice
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
1) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("ws")
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
1) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("ws")
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
1) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("ws")
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
1) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("ws")
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
2) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("sockjs")
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
2) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("sockjs")
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
2) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("sockjs")
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/e2e/web-socket-communication.test.js#L110
2) [chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("sockjs")
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
108 |
109 | // this fails
> 110 | expect(server.webSocketServer.clients.length).toBe(0);
| ^
111 | expect(
112 | consoleMessages.map((message) => message.text()),
113 | ).toMatchSnapshotWithArray("console messages");
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-communication.test.js:110:57
|
Run E2E tests for webpack version latest:
test/helpers/playwright-custom-expects.js#L41
3) [chromium] › web-socket-server-url.test.js:115:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are same ("ws")
Error: A snapshot doesn't exist at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/__snapshots__/web-socket-server-url.test.js/web-socket-server-URL-should-work-behind-proxy-when-hostnames-are-different-and-ports-are-same-ws-console-messages-snap.webpack5, writing actual.
at ../helpers/playwright-custom-expects.js:41
39 | try {
40 | const serialized = JSON.stringify(received);
> 41 | await expect(serialized).toMatchSnapshot({
| ^
42 | name: snapshotFilePath,
43 | });
44 | pass = true;
at Object.toMatchSnapshotWithArray (/home/runner/work/webpack-dev-server/webpack-dev-server/test/helpers/playwright-custom-expects.js:41:32)
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-server-url.test.js:202:11
|
Run E2E tests for webpack version latest:
test/helpers/playwright-custom-expects.js#L41
4) [chromium] › web-socket-server-url.test.js:115:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are same ("sockjs")
Error: A snapshot doesn't exist at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/__snapshots__/web-socket-server-url.test.js/web-socket-server-URL-should-work-behind-proxy-when-hostnames-are-different-and-ports-are-same-sockjs-console-messages-snap.webpack5, writing actual.
at ../helpers/playwright-custom-expects.js:41
39 | try {
40 | const serialized = JSON.stringify(received);
> 41 | await expect(serialized).toMatchSnapshot({
| ^
42 | name: snapshotFilePath,
43 | });
44 | pass = true;
at Object.toMatchSnapshotWithArray (/home/runner/work/webpack-dev-server/webpack-dev-server/test/helpers/playwright-custom-expects.js:41:32)
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-server-url.test.js:202:11
|
Run E2E tests for webpack version latest:
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 21.8s
|
Run E2E tests for webpack version latest
4 failed
[chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("ws")
[chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("sockjs")
[chromium] › web-socket-server-url.test.js:115:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are same ("ws")
[chromium] › web-socket-server-url.test.js:115:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are same ("sockjs")
113 passed (1.9m)
|
Loading