chore: refactor e2e tests to playwright #6540
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 /Users/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 /Users/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 /Users/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 /Users/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 /Users/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 /Users/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 /Users/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 /Users/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 /Users/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-messges-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 (/Users/runner/work/webpack-dev-server/webpack-dev-server/test/helpers/playwright-custom-expects.js:41:32)
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-server-url.test.js:202:10
|
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 /Users/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-page-errors-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 (/Users/runner/work/webpack-dev-server/webpack-dev-server/test/helpers/playwright-custom-expects.js:41:32)
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/web-socket-server-url.test.js:203:28
|
Run E2E tests for webpack version latest:
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 23.5s
|
Run E2E tests for webpack version latest
14 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:212:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are different ("ws")
[chromium] › web-socket-server-url.test.js:314:5 › web socket server URL › should work behind proxy, when the "host" option is "local-ip" and the "port" option is "auto" ("ws")
[chromium] › web-socket-server-url.test.js:2034:5 › web socket server URL › should work when "host" option is IPv4 ("ws")
[chromium] › web-socket-server-url.test.js:2103:5 › web socket server URL › should work when "host" option is "local-ip" ("ws")
[chromium] › web-socket-server-url.test.js:2173:5 › web socket server URL › should work when "host" option is "local-ipv4" ("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")
[chromium] › web-socket-server-url.test.js:212:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are different ("sockjs")
[chromium] › web-socket-server-url.test.js:314:5 › web socket server URL › should work behind proxy, when the "host" option is "local-ip" and the "port" option is "auto" ("sockjs")
[chromium] › web-socket-server-url.test.js:2034:5 › web socket server URL › should work when "host" option is IPv4 ("sockjs")
[chromium] › web-socket-server-url.test.js:2103:5 › web socket server URL › should work when "host" option is "local-ip" ("sockjs")
[chromium] › web-socket-server-url.test.js:2173:5 › web socket server URL › should work when "host" option is "local-ipv4" ("sockjs")
103 passed (2.3m)
|
Loading