chore: refactor e2e tests to playwright #6470
Annotations
10 errors, 5 warnings, and 1 notice
test\helpers\playwright-custom-expects.js#L13
1) [chromium] › allowed-hosts.test.js:1285:5 › allowed hosts › check host headers › should always allow value from the `host` options if options.allowedHosts is auto
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\snaps\allowed-hosts.test.js\allowed-hosts-check-host-headers-should-always-44b90-host-options-if-options-allowedHosts-is-auto-1.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:1324:33
|
test\helpers\playwright-custom-expects.js#L13
1) [chromium] › allowed-hosts.test.js:1285:5 › allowed hosts › check host headers › should always allow value from the `host` options if options.allowedHosts is auto
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\snaps\allowed-hosts.test.js\allowed-hosts-check-host-headers-should-always-55f3c-host-options-if-options-allowedHosts-is-auto-2.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:1327:59
|
test\helpers\playwright-custom-expects.js#L13
1) [chromium] › allowed-hosts.test.js:1285:5 › allowed hosts › check host headers › should always allow value from the `host` options if options.allowedHosts is auto
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\snaps\allowed-hosts.test.js\allowed-hosts-check-host-headers-should-always-064e0-host-options-if-options-allowedHosts-is-auto-3.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:1329:26
|
test\e2e\compress.test.js#L162
2) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
TypeError: Cannot read properties of undefined (reading 'actual')
160 | expect(
161 | response.headers()["content-encoding"])
> 162 | .toMatchSnapshotWithArray();
| ^
163 |
164 | expect(
165 | consoleMessages.map((message) => message.text()))
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\compress.test.js:162:8
|
test\e2e\compress.test.js#L162
2) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'actual')
160 | expect(
161 | response.headers()["content-encoding"])
> 162 | .toMatchSnapshotWithArray();
| ^
163 |
164 | expect(
165 | consoleMessages.map((message) => message.text()))
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\compress.test.js:162:8
|
test\e2e\compress.test.js#L1
2) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Test ended.
|
test\e2e\compress.test.js#L1
2) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: ENOENT: no such file or directory, open 'D:\a\webpack-dev-server\webpack-dev-server\test-results\.playwright-artifacts-4\886fa7c924e7fc3c924076ebb13ffb68.zip'
|
test\e2e\compress.test.js#L162
2) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'actual')
160 | expect(
161 | response.headers()["content-encoding"])
> 162 | .toMatchSnapshotWithArray();
| ^
163 |
164 | expect(
165 | consoleMessages.map((message) => message.text()))
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\compress.test.js:162:8
|
test\e2e\compress.test.js#L162
2) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'actual')
160 | expect(
161 | response.headers()["content-encoding"])
> 162 | .toMatchSnapshotWithArray();
| ^
163 |
164 | expect(
165 | consoleMessages.map((message) => message.text()))
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\compress.test.js:162:8
|
test\e2e\history-api-fallback.test.js#L61
3) [chromium] › history-api-fallback.test.js:42:5 › historyApiFallback option › as boolean › should handle GET request to directory
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-608fa-le-GET-request-to-directory-chromium\\historyApiFallback-option--86adf--GET-request-to-directory-3-actual.txt"
Received: "Heyyy·
"
59 | expect(response.status()).toMatchSnapshotWithArray();
60 |
> 61 | expect(await response.text()).toMatchSnapshotWithArray();
| ^
62 |
63 | expect(
64 | consoleMessages.map((message) => message.text()),
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:61:37
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 43.0s
|
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 36.0s
|
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 27.6s
|
[chromium] › logging.test.js#L1
[chromium] › logging.test.js took 26.6s
|
[chromium] › multi-compiler.test.js#L1
[chromium] › multi-compiler.test.js took 24.5s
|
94 failed
[chromium] › allowed-hosts.test.js:1285:5 › allowed hosts › check host headers › should always allow value from the `host` options if options.allowedHosts is auto
[chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
[chromium] › history-api-fallback.test.js:42:5 › historyApiFallback option › as boolean › should handle GET request to directory
[chromium] › history-api-fallback.test.js:100:5 › historyApiFallback option › as object › should handle GET request to directory
[chromium] › history-api-fallback.test.js:162:5 › historyApiFallback option › as object with static › should handle GET request to directory
[chromium] › history-api-fallback.test.js:190:5 › historyApiFallback option › as object with static › should prefer static file over historyApiFallback
[chromium] › history-api-fallback.test.js:255:5 › historyApiFallback option › as object with static set to false › historyApiFallback should work and ignore static content
[chromium] › history-api-fallback.test.js:328:5 › historyApiFallback option › as object with static and rewrites › historyApiFallback respect rewrites for index
[chromium] › history-api-fallback.test.js:356:5 › historyApiFallback option › as object with static and rewrites › historyApiFallback respect rewrites and shows index for unknown urls
[chromium] › history-api-fallback.test.js:386:5 › historyApiFallback option › as object with static and rewrites › historyApiFallback respect any other specified rewrites
[chromium] › history-api-fallback.test.js:451:5 › historyApiFallback option › as object with the "verbose" option › request to directory and log
[chromium] › history-api-fallback.test.js:522:5 › historyApiFallback option › as object with the "logger" option › request to directory and log
[chromium] › history-api-fallback.test.js:590:5 › historyApiFallback option › in-memory files › should take precedence over static files
[chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
[chromium] › host.test.js:50:5 › host › should work using "local-ip" host and port as number ───
[chromium] › host.test.js:122:5 › host › should work using "local-ip" host and port as string ──
[chromium] › host.test.js:194:5 › host › should work using "local-ip" host and "auto" port ─────
[chromium] › host.test.js:50:5 › host › should work using "local-ipv4" host and port as number ─
[chromium] › host.test.js:122:5 › host › should work using "local-ipv4" host and port as string
[chromium] › host.test.js:194:5 › host › should work using "local-ipv4" host and "auto" port ───
[chromium] › options-middleware.test.js:27:3 › handle options-request correctly › should response with 200 http code
[chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ────
[chromium] › overlay.test.js:128:3 › overlay › should show an error for initial compilation ────
[chromium] › overlay.test.js:174:3 › overlay › should show a warning and error for initial compilation
[chromium] › overlay.test.js:226:3 › overlay › should show an ansi formatted error for initial compilation
[chromium] › overlay.test.js:276:3 › overlay › should show a warning and error for initial compilation and protects against xss
[chromium] › overlay.test.js:325:3 › overlay › should not show initially, then show on an error, then hide on fix
[chromium] › overlay.test.js:407:3 › overlay › should not show initially, then show on an error, then show other error, then hide on fix
[chromium] › overlay.test.js:517:3 › overlay › should not show initially, then show on an error and allow to close
[chromium] › overlay.test.js:607:3 › overlay › should open editor when error with file info is clicked
[chromium] › overlay.test.js:698:3 › overlay › should not show a warning when "client.overlay.warnings" is "false"
[chromium] › overlay.test.js:742:3 › ov
|
This job failed
Loading