chore: refactor e2e tests to playwright #6465
Annotations
10 errors, 5 warnings, and 1 notice
test/e2e/compress.test.js#L162
1) [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 /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/compress.test.js:162:8
|
test/e2e/compress.test.js#L162
1) [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 /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/compress.test.js:162:8
|
test/e2e/compress.test.js#L1
1) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Target page, context or browser has been closed
|
test/e2e/compress.test.js#L162
1) [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 /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/compress.test.js:162:8
|
test/e2e/compress.test.js#L1
1) [chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Test ended.
Browser logs:
<launching> /home/runner/.cache/ms-playwright/chromium-1117/chrome-linux/chrome --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=/tmp/playwright_chromiumdev_profile-XXXXXXHV4Wrg --remote-debugging-pipe --no-startup-window
<launched> pid=7660
[pid=7660][err] [0719/124124.252543:INFO:config_dir_policy_loader.cc(118)] Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed
[pid=7660][err] [0719/124124.252586:INFO:config_dir_policy_loader.cc(118)] Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended
[pid=7660][err] [0719/124124.262429:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[pid=7660][err] [0719/124124.275935:WARNING:sandbox_linux.cc(436)] InitializeSandbox() called with multiple threads in process gpu-process.
[pid=7660] <gracefully close start>
|
test/e2e/options-middleware.test.js#L98
2) [chromium] › options-middleware.test.js:27:3 › handle options-request correctly › should response with 200 http code
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
Array [
200,
- 204,
]
96 | ///
97 |
> 98 | expect(responseStatus.sort()).toEqual([200, 204]);
| ^
99 | } catch (error) {
100 | throw error;
101 | } finally {
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/options-middleware.test.js:98:37
|
test/e2e/options-middleware.test.js#L98
2) [chromium] › options-middleware.test.js:27:3 › handle options-request correctly › should response with 200 http code
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
Array [
200,
- 204,
]
96 | ///
97 |
> 98 | expect(responseStatus.sort()).toEqual([200, 204]);
| ^
99 | } catch (error) {
100 | throw error;
101 | } finally {
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/options-middleware.test.js:98:37
|
test/e2e/options-middleware.test.js#L98
2) [chromium] › options-middleware.test.js:27:3 › handle options-request correctly › should response with 200 http code
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
Array [
200,
- 204,
]
96 | ///
97 |
> 98 | expect(responseStatus.sort()).toEqual([200, 204]);
| ^
99 | } catch (error) {
100 | throw error;
101 | } finally {
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/options-middleware.test.js:98:37
|
test/e2e/overlay.test.js#L1
3) [chromium] › overlay.test.js:517:3 › overlay › should not show initially, then show on an error and allow to close
Test timeout of 30000ms exceeded.
|
test/e2e/overlay.test.js#L584
3) [chromium] › overlay.test.js:517:3 › overlay › should not show initially, then show on an error and allow to close
Error: page.waitForSelector: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('#webpack-dev-server-client-overlay') to be visible
582 | await buttonHandle.click();
583 |
> 584 | await page.waitForSelector("#webpack-dev-server-client-overlay", {
| ^
585 | hidden: true,
586 | });
587 |
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:584:18
|
[chromium] › web-socket-server-url.test.js#L1
[chromium] › web-socket-server-url.test.js took 47.6s
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 34.1s
|
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 26.8s
|
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 25.6s
|
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 21.9s
|
10 failed
[chromium] › compress.test.js:140:5 › compress option › as false › should handle GET request to bundle file
[chromium] › options-middleware.test.js:27:3 › handle options-request correctly › should response with 200 http code
[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 › overlay › should not show warning when it is filtered ─────
[chromium] › overlay.test.js:1035:3 › overlay › should not show an error when "client.overlay.errors" is "false"
[chromium] › overlay.test.js:1079:3 › overlay › should not show error when it is filtered ──────
[chromium] › overlay.test.js:1750:3 › overlay › should not show filtered runtime error ─────────
[chromium] › overlay.test.js:1838:3 › overlay › should not show filtered promise rejection ─────
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 (/)
7 skipped
449 passed (8.6m)
|
This job failed
Loading