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 D:\a\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 D:\a\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: Test ended.
|
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: ENOENT: no such file or directory, open 'D:\a\webpack-dev-server\webpack-dev-server\test-results\.playwright-artifacts-3\ff286bfd27f39e8108bbb19f24e93412.zip'
|
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 D:\a\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 D:\a\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 D:\a\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 D:\a\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:407:3 › overlay › should not show initially, then show on an error, then show other error, then hide on fix
Test timeout of 30000ms exceeded.
|
test\e2e\overlay.test.js#L496
3) [chromium] › overlay.test.js:407:3 › overlay › should not show initially, then show on an error, then show other error, then hide on fix
Error: page.waitForSelector: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('#webpack-dev-server-client-overlay') to be visible
494 | fs.writeFileSync(pathToFile, originalCode);
495 |
> 496 | await page.waitForSelector("#webpack-dev-server-client-overlay", {
| ^
497 | hidden: true,
498 | });
499 |
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\overlay.test.js:496:18
|
[chromium] › web-socket-server-url.test.js#L1
[chromium] › web-socket-server-url.test.js took 1.2m
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 43.1s
|
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 37.0s
|
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 34.0s
|
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 27.7s
|
11 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: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 › 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
8 skipped
446 passed (13.5m)
|
This job failed
Loading