chore: refactor e2e tests to playwright #6564
Annotations
11 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#L1
2) [chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
Test timeout of 30000ms exceeded.
|
Run E2E tests for webpack version latest:
test\e2e\overlay.test.js#L291
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 timeout of 30000ms exceeded.
Call log:
- waiting for locator('#webpack-dev-server-client-overlay') to be visible
289 | fs.writeFileSync(pathToFile, originalCode);
290 |
> 291 | await page.waitForSelector("#webpack-dev-server-client-overlay", {
| ^
292 | hidden: true,
293 | });
294 |
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\overlay.test.js:291: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 37.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.1s
|
Run E2E tests for webpack version latest:
[chromium] › logging.test.js#L1
[chromium] › logging.test.js took 26.5s
|
Run E2E tests for webpack version latest:
[chromium] › host.test.js#L1
[chromium] › host.test.js took 25.0s
|
Run E2E tests for webpack version latest
2 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
2 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 (/)
4 skipped
211 did not run
268 passed (8.2m)
|
Loading