chore: refactor e2e tests to playwright #6554
Annotations
10 errors, 5 warnings, and 1 notice
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L637
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
635 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
636 |
> 637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
638 |
639 | const responseHead = await page.evaluate(async () => {
640 | const response = await fetch("/foo", { method: "HEAD" });
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:637:32
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L639
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Error: page.evaluate: Test ended.
637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
638 |
> 639 | const responseHead = await page.evaluate(async () => {
| ^
640 | const response = await fetch("/foo", { method: "HEAD" });
641 |
642 | return {
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:639:39
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L637
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium-retry1\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
635 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
636 |
> 637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
638 |
639 | const responseHead = await page.evaluate(async () => {
640 | const response = await fetch("/foo", { method: "HEAD" });
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:637:32
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L639
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: Test ended.
637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
638 |
> 639 | const responseHead = await page.evaluate(async () => {
| ^
640 | const response = await fetch("/foo", { method: "HEAD" });
641 |
642 | return {
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:639:39
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L637
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium-retry2\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
635 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
636 |
> 637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
638 |
639 | const responseHead = await page.evaluate(async () => {
640 | const response = await fetch("/foo", { method: "HEAD" });
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:637:32
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L639
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: Test ended.
637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
638 |
> 639 | const responseHead = await page.evaluate(async () => {
| ^
640 | const response = await fetch("/foo", { method: "HEAD" });
641 |
642 | return {
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:639:39
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L637
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\history-api-fallback-histo-c4431--request-in-same-way-as-GET-chromium-retry3\\historyApiFallback-option-in-memory-files-should-perform-HEAD-request-in-same-way-as-GET-text-snap-actual.webpack5"
Received: "In-memory file·
"
635 | expect(responseGet.statusText).toMatchSnapshotWithArray("status text");
636 |
> 637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
| ^
638 |
639 | const responseHead = await page.evaluate(async () => {
640 | const response = await fetch("/foo", { method: "HEAD" });
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:637:32
|
Run E2E tests for webpack version latest:
test\e2e\history-api-fallback.test.js#L639
1) [chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: Test ended.
637 | expect(responseGet.text).toMatchSnapshotWithArray("text");
638 |
> 639 | const responseHead = await page.evaluate(async () => {
| ^
640 | const response = await fetch("/foo", { method: "HEAD" });
641 |
642 | return {
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\history-api-fallback.test.js:639:39
|
Run E2E tests for webpack version latest:
test\e2e\overlay.test.js#L254
2) [chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "D:\\a\\webpack-dev-server\\webpack-dev-server\\test-results\\overlay-overlay-should-not-921b1-n-an-error-then-hide-on-fix-chromium\\overlay-should-not-show-initially-then-show-on-an-error-then-hide-on-fix-page-html-snap-actual.webpack5"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>
</body>
"
252 | plugins: [prettierHTML, prettierCSS],
253 | }),
> 254 | ).toMatchSnapshotWithArray("page html");
| ^
255 |
256 | const pathToFile = path.resolve(
257 | __dirname,
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\overlay.test.js:254:9
|
Run E2E tests for webpack version latest:
test\e2e\overlay.test.js#L264
2) [chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
Error: page.waitForSelector: Test ended.
Call log:
- waiting for locator('#webpack-dev-server-client-overlay') to be visible
262 | fs.writeFileSync(pathToFile, "`;");
263 |
> 264 | await page.waitForSelector("#webpack-dev-server-client-overlay");
| ^
265 |
266 | overlayHandle = await page.$("#webpack-dev-server-client-overlay");
267 |
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\overlay.test.js:264:18
|
Run E2E tests for webpack version latest:
[chromium] › client-reconnect.test.js#L1
[chromium] › client-reconnect.test.js took 43.0s
|
Run E2E tests for webpack version latest:
[chromium] › allowed-hosts.test.js#L1
[chromium] › allowed-hosts.test.js took 38.5s
|
Run E2E tests for webpack version latest:
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 36.2s
|
Run E2E tests for webpack version latest:
[chromium] › watch-files.test.js#L1
[chromium] › watch-files.test.js took 27.5s
|
Run E2E tests for webpack version latest:
[chromium] › logging.test.js#L1
[chromium] › logging.test.js took 26.6s
|
Run E2E tests for webpack version latest
18 failed
[chromium] › history-api-fallback.test.js:618:5 › historyApiFallback option › in-memory files › should perform HEAD request in same way as GET
[chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
[chromium] › overlay.test.js:311:3 › overlay › should not show initially, then show on an error, then show other error, then hide on fix
[chromium] › overlay.test.js:419:3 › overlay › should not show initially, then show on an error and allow to close
[chromium] › overlay.test.js:585:3 › overlay › should not show a warning when "client.overlay.warnings" is "false"
[chromium] › overlay.test.js:619:3 › overlay › should not show warning when it is filtered ─────
[chromium] › overlay.test.js:823:3 › overlay › should not show an error when "client.overlay.errors" is "false"
[chromium] › overlay.test.js:857:3 › overlay › should not show error when it is filtered ───────
[chromium] › overlay.test.js:1162:3 › overlay › should show a warning and hide them after closing connection
[chromium] › overlay.test.js:1339:3 › overlay › should not show filtered runtime error ─────────
[chromium] › overlay.test.js:1408:3 › overlay › should not show filtered promise rejection ─────
[chromium] › server.test.js:410:7 › server option › as object › ca, pfx, key and cert are strings › should handle GET request to index route (/)
[chromium] › server.test.js:503:7 › server option › as object › ca, pfx, key and cert are array of strings › should handle GET request to index route (/)
[chromium] › server.test.js:972:7 › server option › as object › ca, pfx, key and cert are strings, key and pfx are objects › should handle GET request to index route (/)
[chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("ws")
[chromium] › web-socket-communication.test.js:69:5 › web socket communication › should work and terminate client that is not alive ("sockjs")
[chromium] › web-socket-server-url.test.js:115:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are same ("ws")
[chromium] › web-socket-server-url.test.js:115:5 › web socket server URL › should work behind proxy, when hostnames are different and ports are same ("sockjs")
4 flaky
[chromium] › api.test.js:46:7 › 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] › server.test.js:1184:7 › server option › as object › spdy server with options › should handle GET request to index route (/)
[chromium] › static-public-path.test.js:505:5 › static.publicPath option › defaults to CWD › should handle request to page
5 skipped
460 passed (12.8m)
|
Loading