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 /Users/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 /Users/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: end of central directory record signature not found
|
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 /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/compress.test.js:162:8
|
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 /Users/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 /Users/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 /Users/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 /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:584:18
|
test/e2e/overlay.test.js#L536
3) [chromium] › overlay.test.js:517:3 › overlay › should not show initially, then show on an error and allow to close
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: null
Received: {"_guid": "handle@dc28dbf12ca6ed7a5c4285e4564288c6", "_type": "ElementHandle"}
534 | let overlayHandle = await page.$("#webpack-dev-server-client-overlay");
535 |
> 536 | expect(overlayHandle).toBe(null);
| ^
537 | expect(
538 | await prettier.format(pageHtml, {
539 | parser: "html",
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:536:29
|
[chromium] › web-socket-server-url.test.js#L1
[chromium] › web-socket-server-url.test.js took 49.5s
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 34.4s
|
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 30.3s
|
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 29.7s
|
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 23.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 ─────
3 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 (/)
[chromium] › overlay.test.js:325:3 › overlay › should not show initially, then show on an error, then hide on fix
7 skipped
448 passed (9.1m)
|
This job failed
Loading