chore: refactor e2e tests to playwright #6529
Annotations
10 errors and 1 notice
Run E2E tests for webpack version latest
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/server-server-option-as-ob-3d097-GET-request-to-index-route--chromium/server-option-as-object-should-support-the-requestCert-option-should-handle-GET-request-to-index-route-undefined-snap-1-actual.webpack5"
Received: "Heyo.
"
Failed worker ran 1 test:
[chromium] › test/e2e/server.test.js:1089:7 › server option › as object › should support the "requestCert" option › should handle GET request to index route (/)
at server.test.js:1093
1091 |
1092 | expect(response.status).toMatchSnapshotWithArray();
> 1093 | expect(response.text).toMatchSnapshotWithArray();
| ^
1094 | });
1095 | });
1096 |
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/server.test.js:1093:31
|
Run E2E tests for webpack version latest:
test/helpers/playwright-custom-expects.js#L41
1) [chromium] › port.test.js:25:5 › port › should work using "<not-specified>" port ─────────────
Error: A snapshot doesn't exist at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/__snapshots__/port.test.js/port-should-work-using-not-specified-port-undefined-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/port.test.js:100:11
|
Run E2E tests for webpack version latest:
test/e2e/port.test.js#L101
1) [chromium] › port.test.js:25:5 › port › should work using "<not-specified>" port ─────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/port-port-should-work-using-not-specified-port--chromium/port-should-work-using-not-specified-port-undefined-snap-1-actual.webpack5"
Received: []
99 | consoleMessages.map((message) => message.text()),
100 | ).toMatchSnapshotWithArray();
> 101 | expect(pageErrors).toMatchSnapshotWithArray();
| ^
102 | } catch (error) {
103 | throw error;
104 | } finally {
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/port.test.js:101:28
|
Run E2E tests for webpack version latest:
test/helpers/playwright-custom-expects.js#L41
2) [chromium] › port.test.js:25:5 › port › should work using "undefined" port ───────────────────
Error: A snapshot doesn't exist at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/__snapshots__/port.test.js/port-should-work-using-undefined-port-undefined-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/port.test.js:100:11
|
Run E2E tests for webpack version latest:
test/e2e/port.test.js#L101
2) [chromium] › port.test.js:25:5 › port › should work using "undefined" port ───────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/port-port-should-work-using-undefined-port--chromium/port-should-work-using-undefined-port-undefined-snap-1-actual.webpack5"
Received: []
99 | consoleMessages.map((message) => message.text()),
100 | ).toMatchSnapshotWithArray();
> 101 | expect(pageErrors).toMatchSnapshotWithArray();
| ^
102 | } catch (error) {
103 | throw error;
104 | } finally {
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/port.test.js:101:28
|
Run E2E tests for webpack version latest:
test/helpers/playwright-custom-expects.js#L41
3) [chromium] › port.test.js:25:5 › port › should work using "auto" port ────────────────────────
Error: A snapshot doesn't exist at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/__snapshots__/port.test.js/port-should-work-using-auto-port-undefined-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/port.test.js:100:11
|
Run E2E tests for webpack version latest:
test/e2e/port.test.js#L101
3) [chromium] › port.test.js:25:5 › port › should work using "auto" port ────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/port-port-should-work-using-auto-port--chromium/port-should-work-using-auto-port-undefined-snap-1-actual.webpack5"
Received: []
99 | consoleMessages.map((message) => message.text()),
100 | ).toMatchSnapshotWithArray();
> 101 | expect(pageErrors).toMatchSnapshotWithArray();
| ^
102 | } catch (error) {
103 | throw error;
104 | } finally {
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/port.test.js:101:28
|
Run E2E tests for webpack version latest:
test/helpers/playwright-custom-expects.js#L41
4) [chromium] › port.test.js:25:5 › port › should work using "8161" port ────────────────────────
Error: A snapshot doesn't exist at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/__snapshots__/port.test.js/port-should-work-using-8161-port-undefined-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/port.test.js:100:11
|
Run E2E tests for webpack version latest:
test/e2e/port.test.js#L101
4) [chromium] › port.test.js:25:5 › port › should work using "8161" port ────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/port-port-should-work-using-8161-port--chromium/port-should-work-using-8161-port-undefined-snap-1-actual.webpack5"
Received: []
99 | consoleMessages.map((message) => message.text()),
100 | ).toMatchSnapshotWithArray();
> 101 | expect(pageErrors).toMatchSnapshotWithArray();
| ^
102 | } catch (error) {
103 | throw error;
104 | } finally {
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/port.test.js:101:28
|
Run E2E tests for webpack version latest:
test/helpers/playwright-custom-expects.js#L41
5) [chromium] › port.test.js:25:5 › port › should work using "0" port ───────────────────────────
Error: A snapshot doesn't exist at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/__snapshots__/port.test.js/port-should-work-using-0-port-undefined-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/port.test.js:100:11
|
Run E2E tests for webpack version latest
67 failed
[chromium] › port.test.js:25:5 › port › should work using "<not-specified>" port ──────────────
[chromium] › port.test.js:25:5 › port › should work using "undefined" port ────────────────────
[chromium] › port.test.js:25:5 › port › should work using "auto" port ─────────────────────────
[chromium] › port.test.js:25:5 › port › should work using "8161" port ─────────────────────────
[chromium] › port.test.js:25:5 › port › should work using "0" port ────────────────────────────
[chromium] › server-and-client-transport.test.js:15:3 › server and client transport › should use default web socket server ("ws")
[chromium] › server-and-client-transport.test.js:50:3 › server and client transport › should use "ws" web socket server when specify "ws" value
[chromium] › server-and-client-transport.test.js:88:3 › server and client transport › should use "ws" web socket server when specify "ws" value using object
[chromium] › server-and-client-transport.test.js:128:3 › server and client transport › should use "sockjs" web socket server when specify "sockjs" value
[chromium] › server-and-client-transport.test.js:166:3 › server and client transport › should use "sockjs" web socket server when specify "sockjs" value using object
[chromium] › server-and-client-transport.test.js:206:3 › server and client transport › should use custom web socket server when specify class
[chromium] › server-and-client-transport.test.js:247:3 › server and client transport › should use custom web socket server when specify class using object
[chromium] › server-and-client-transport.test.js:290:3 › server and client transport › should use custom web socket server when specify path to class
[chromium] › server-and-client-transport.test.js:331:3 › server and client transport › should use custom web socket server when specify path to class using object
[chromium] › server-and-client-transport.test.js:374:3 › server and client transport › should throw an error on wrong path
[chromium] › server-and-client-transport.test.js:395:3 › server and client transport › should use "sockjs" transport, when web socket server is not specify
[chromium] › server-and-client-transport.test.js:435:3 › server and client transport › should use "ws" transport, when web socket server is not specify
[chromium] › server-and-client-transport.test.js:475:3 › server and client transport › should use "sockjs" transport and "sockjs" web socket server
[chromium] › server-and-client-transport.test.js:516:3 › server and client transport › should use "ws" transport and "ws" web socket server
[chromium] › server-and-client-transport.test.js:557:3 › server and client transport › should use custom transport and "sockjs" web socket server
[chromium] › server.test.js:62:7 › server option › as string › http › should handle GET request to index route (/)
[chromium] › server.test.js:117:7 › server option › as string › custom-http › should handle GET request to index route (/)
[chromium] › server.test.js:173:7 › server option › as string › https › should handle GET request to index route (/)
[chromium] › server.test.js:228:7 › server option › as string › spdy › should handle GET request to index route (/)
[chromium] › server.test.js:321:7 › server option › as object › ca, pfx, key and cert are array of buffers › should handle GET request to index route (/)
[chromium] › server.test.js:401:7 › server option › as object › ca, pfx, key and cert are strings › should handle GET request to index route (/)
[chromium] › server.test.js:490:7 › server option › as object › ca, pfx, key and cert are array of strings › should handle GET request to index route (/)
[chromium] › server.test.js:556:7 › server option › as object › ca, pfx, key and cert are paths to files › should handle GET request to index route (/)
[chromium] › server.test.js:622:7 › server option › as object › ca, pfx, key and cert are array of paths to files › should handle GET request to index route (/
|
Loading