chore: refactor e2e tests to playwright #6470
Annotations
10 errors, 1 warning, 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\a3e3d63d5d79c889115a61bbecb1db9b.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.3s
|
14 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
2 flaky
[chromium] › api.test.js:41:5 › API › WEBPACK_SERVE environment variable › should be present ───
[chromium] › app.test.js:59:9 › app option › should work using "express" application and "http" server › should handle GET request to index route (/)
1 skipped
101 passed (5.5m)
|
This job failed
Loading