chore: refactor e2e tests to playwright #6467
Annotations
10 errors and 1 notice
test\helpers\playwright-custom-expects.js#L13
1) [chromium] › allowed-hosts.test.js:21:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-disconnect-web-socket-cli-b66cc-auto-value-based-on-the-host-header-ws-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:88:61
|
test\helpers\playwright-custom-expects.js#L13
1) [chromium] › allowed-hosts.test.js:21:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-disconnect-web-socket-cli-1f8c3-auto-value-based-on-the-host-header-ws-2-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:89:28
|
test\helpers\playwright-custom-expects.js#L13
2) [chromium] › allowed-hosts.test.js:99:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header when "server: 'https'" is enabled ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-disconnect-web-socket-cli-f39d6-ader-when-server-https-is-enabled-ws-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:169:61
|
test\helpers\playwright-custom-expects.js#L13
2) [chromium] › allowed-hosts.test.js:99:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header when "server: 'https'" is enabled ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-disconnect-web-socket-cli-e1793-ader-when-server-https-is-enabled-ws-2-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:170:28
|
test\helpers\playwright-custom-expects.js#L13
3) [chromium] › allowed-hosts.test.js:180:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "origin" header ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-disconnect-web-socket-cli-d126b-to-value-based-on-the-origin-header-ws-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:247:61
|
test\helpers\playwright-custom-expects.js#L13
3) [chromium] › allowed-hosts.test.js:180:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "origin" header ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-disconnect-web-socket-cli-99e8e-to-value-based-on-the-origin-header-ws-2-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:248:28
|
test\helpers\playwright-custom-expects.js#L13
4) [chromium] › allowed-hosts.test.js:258:5 › allowed hosts › should connect web socket client using localhost to web socket server with the "auto" value ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-connect-web-socket-client-a0eb2-eb-socket-server-with-the-auto-value-ws-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:321:61
|
test\helpers\playwright-custom-expects.js#L13
4) [chromium] › allowed-hosts.test.js:258:5 › allowed hosts › should connect web socket client using localhost to web socket server with the "auto" value ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-connect-web-socket-client-359e3-eb-socket-server-with-the-auto-value-ws-2-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:322:28
|
test\helpers\playwright-custom-expects.js#L13
5) [chromium] › allowed-hosts.test.js:332:5 › allowed hosts › should connect web socket client using "127.0.0.1" host to web socket server with the "auto" value ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-connect-web-socket-client-9f314-eb-socket-server-with-the-auto-value-ws-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:395:61
|
test\helpers\playwright-custom-expects.js#L13
5) [chromium] › allowed-hosts.test.js:332:5 › allowed hosts › should connect web socket client using "127.0.0.1" host to web socket server with the "auto" value ("ws")
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js-snapshots\allowed-hosts-should-connect-web-socket-client-d625a-eb-socket-server-with-the-auto-value-ws-2-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\allowed-hosts.test.js:396:28
|
107 failed
[chromium] › allowed-hosts.test.js:21:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header ("ws")
[chromium] › allowed-hosts.test.js:99:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header when "server: 'https'" is enabled ("ws")
[chromium] › allowed-hosts.test.js:180:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "origin" header ("ws")
[chromium] › allowed-hosts.test.js:258:5 › allowed hosts › should connect web socket client using localhost to web socket server with the "auto" value ("ws")
[chromium] › allowed-hosts.test.js:332:5 › allowed hosts › should connect web socket client using "127.0.0.1" host to web socket server with the "auto" value ("ws")
[chromium] › allowed-hosts.test.js:406:5 › allowed hosts › should connect web socket client using "[::1] host to web socket server with the "auto" value ("ws")
[chromium] › allowed-hosts.test.js:480:5 › allowed hosts › should connect web socket client using "file:" protocol to web socket server with the "auto" value ("ws")
[chromium] › allowed-hosts.test.js:557:5 › allowed hosts › should connect web socket client using "chrome-extension:" protocol to web socket server with the "auto" value ("ws")
[chromium] › allowed-hosts.test.js:634:5 › allowed hosts › should connect web socket client using custom hostname to web socket server with the "all" value ("ws")
[chromium] › allowed-hosts.test.js:712:5 › allowed hosts › should connect web socket client using custom hostname to web socket server with the "all" value in array ("ws")
[chromium] › allowed-hosts.test.js:790:5 › allowed hosts › should connect web socket client using custom hostname to web socket server with the custom hostname value ("ws")
[chromium] › allowed-hosts.test.js:868:5 › allowed hosts › should connect web socket client using custom hostname to web socket server with the custom hostname value starting with dot ("ws")
[chromium] › allowed-hosts.test.js:946:5 › allowed hosts › should connect web socket client using custom sub hostname to web socket server with the custom hostname value ("ws")
[chromium] › allowed-hosts.test.js:1027:5 › allowed hosts › should connect web socket client using custom hostname to web socket server with the multiple custom hostname values ("ws")
[chromium] › allowed-hosts.test.js:1105:5 › allowed hosts › should disconnect web client using localhost to web socket server with the "auto" value ("ws")
[chromium] › allowed-hosts.test.js:21:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header ("sockjs")
[chromium] › allowed-hosts.test.js:99:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "host" header when "server: 'https'" is enabled ("sockjs")
[chromium] › allowed-hosts.test.js:180:5 › allowed hosts › should disconnect web socket client using custom hostname from web socket server with the "auto" value based on the "origin" header ("sockjs")
[chromium] › allowed-hosts.test.js:258:5 › allowed hosts › should connect web socket client using localhost to web socket server with the "auto" value ("sockjs")
[chromium] › allowed-hosts.test.js:332:5 › allowed hosts › should connect web socket client using "127.0.0.1" host to web socket server with the "auto" value ("sockjs")
[chromium] › allowed-hosts.test.js:406:5 › allowed hosts › should connect web socket client using "[::1] host to web socket server with the "auto" value ("sockjs")
[chromium] › allowed-hosts.test.js:480:5 › allowed hosts › should connect web socket client using "file:" protocol to web socket server with the "auto" value ("sockjs")
[chromium
|
This job failed
Loading