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: 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 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:325:3 › overlay › should not show initially, then show on an error, then hide on fix
Test timeout of 30000ms exceeded.
|
test\e2e\overlay.test.js#L386
3) [chromium] › overlay.test.js:325:3 › overlay › should not show initially, then show on an 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
384 | fs.writeFileSync(pathToFile, originalCode);
385 |
> 386 | await page.waitForSelector("#webpack-dev-server-client-overlay", {
| ^
387 | hidden: true,
388 | });
389 |
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\overlay.test.js:386:18
|
test\e2e\overlay.test.js#L1
3) [chromium] › overlay.test.js:325:3 › overlay › should not show initially, then show on an error, then hide on fix
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
[chromium] › web-socket-server-url.test.js#L1
[chromium] › web-socket-server-url.test.js took 1.3m
|
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 43.3s
|
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 41.0s
|
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 38.2s
|
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 28.4s
|
12 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:325:3 › overlay › should not show initially, then show on an error, then hide on fix
[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 ─────
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 (/)
8 skipped
446 passed (15.2m)
|
This job failed
Loading