chore: refactor e2e tests to playwright #6469
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\f48d722b424d4a418e54329d94b3dfbe.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\compress.test.js#L1
2) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Test ended.
Browser logs:
<launching> C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1117\chrome-win\chrome.exe --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --ignore-certificate-errors --user-data-dir=C:\Users\RUNNER~1\AppData\Local\Temp\playwright_chromiumdev_profile-5I86BO --remote-debugging-pipe --no-startup-window
<launched> pid=5808
[pid=5808] <gracefully close start>
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 43.2s
|
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.6m)
|
This job failed
Loading