chore: refactor e2e tests to playwright #6469
Annotations
10 errors, 1 warning, and 1 notice
test/e2e/options-middleware.test.js#L98
1) [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
1) [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
1) [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/options-middleware.test.js#L98
1) [chromium] › options-middleware.test.js:27:3 › handle options-request correctly › should response with 200 http code
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
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#L114
2) [chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ───
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/overlay-overlay-should-sho-67c2b-ing-for-initial-compilation-chromium/overlay-should-show-a-warning-for-initial-compilation-1-actual.txt"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>·
<iframe
id=\"webpack-dev-server-client-overlay\"
src=\"about:blank\"
style=\"
position: fixed;
inset: 0px;
width: 100vw;
height: 100vh;
border: none;
z-index: 2147483647;
\"
></iframe>
</body>
"
112 | plugins: [prettierHTML, prettierCSS],
113 | }),
> 114 | ).toMatchSnapshotWithArray("page html");
| ^
115 | expect(
116 | await prettier.format(overlayHtml, {
117 | parser: "html",
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:114:9
|
test/e2e/overlay.test.js#L114
2) [chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ───
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/overlay-overlay-should-sho-67c2b-ing-for-initial-compilation-chromium-retry1/overlay-should-show-a-warning-for-initial-compilation-1-actual.txt"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>·
<iframe
id=\"webpack-dev-server-client-overlay\"
src=\"about:blank\"
style=\"
position: fixed;
inset: 0px;
width: 100vw;
height: 100vh;
border: none;
z-index: 2147483647;
\"
></iframe>
</body>
"
112 | plugins: [prettierHTML, prettierCSS],
113 | }),
> 114 | ).toMatchSnapshotWithArray("page html");
| ^
115 | expect(
116 | await prettier.format(overlayHtml, {
117 | parser: "html",
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:114:9
|
test/e2e/overlay.test.js#L1
2) [chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ───
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Test ended.
|
test/e2e/overlay.test.js#L1
2) [chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ───
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: ENOENT: no such file or directory, open '/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/.playwright-artifacts-5/c5fd22ca9186de90e464ec1243fb9bb1.zip'
|
test/e2e/overlay.test.js#L114
2) [chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ───
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/overlay-overlay-should-sho-67c2b-ing-for-initial-compilation-chromium-retry2/overlay-should-show-a-warning-for-initial-compilation-1-actual.txt"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>·
<iframe
id=\"webpack-dev-server-client-overlay\"
src=\"about:blank\"
style=\"
position: fixed;
inset: 0px;
width: 100vw;
height: 100vh;
border: none;
z-index: 2147483647;
\"
></iframe>
</body>
"
112 | plugins: [prettierHTML, prettierCSS],
113 | }),
> 114 | ).toMatchSnapshotWithArray("page html");
| ^
115 | expect(
116 | await prettier.format(overlayHtml, {
117 | parser: "html",
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:114:9
|
test/e2e/overlay.test.js#L114
2) [chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ───
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/Users/runner/work/webpack-dev-server/webpack-dev-server/test-results/overlay-overlay-should-sho-67c2b-ing-for-initial-compilation-chromium-retry3/overlay-should-show-a-warning-for-initial-compilation-1-actual.txt"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>·
<iframe
id=\"webpack-dev-server-client-overlay\"
src=\"about:blank\"
style=\"
position: fixed;
inset: 0px;
width: 100vw;
height: 100vh;
border: none;
z-index: 2147483647;
\"
></iframe>
</body>
"
112 | plugins: [prettierHTML, prettierCSS],
113 | }),
> 114 | ).toMatchSnapshotWithArray("page html");
| ^
115 | expect(
116 | await prettier.format(overlayHtml, {
117 | parser: "html",
at /Users/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:114:9
|
[chromium] › static-public-path.test.js#L1
[chromium] › static-public-path.test.js took 16.1s
|
32 failed
[chromium] › options-middleware.test.js:27:3 › handle options-request correctly › should response with 200 http code
[chromium] › overlay.test.js:82:3 › overlay › should show a warning for initial compilation ────
[chromium] › overlay.test.js:128:3 › overlay › should show an error for initial compilation ────
[chromium] › overlay.test.js:174:3 › overlay › should show a warning and error for initial compilation
[chromium] › overlay.test.js:226:3 › overlay › should show an ansi formatted error for initial compilation
[chromium] › overlay.test.js:276:3 › overlay › should show a warning and error for initial compilation and protects against xss
[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:783:3 › overlay › should show warning when it is not filtered ─────
[chromium] › overlay.test.js:836:3 › overlay › should show a warning when "client.overlay" is "true"
[chromium] › overlay.test.js:887:3 › overlay › should show a warning when "client.overlay.warnings" is "true"
[chromium] › overlay.test.js:940:3 › overlay › should show a warning when "client.overlay.errors" is "true"
[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:1121:3 › overlay › should show error when it is not filtered ──────
[chromium] › overlay.test.js:1174:3 › overlay › should show an error when "client.overlay" is "true"
[chromium] › overlay.test.js:1225:3 › overlay › should show overlay when Trusted Types are enabled
[chromium] › overlay.test.js:1289:3 › overlay › should show overlay when Trusted Types are enabled and the "require-trusted-types-for 'script'" header was used
[chromium] › overlay.test.js:1406:3 › overlay › should show an error when "client.overlay.errors" is "true"
[chromium] › overlay.test.js:1459:3 › overlay › should show an error when "client.overlay.warnings" is "true"
[chromium] › overlay.test.js:1512:3 › overlay › should show a warning and hide them after closing connection
[chromium] › overlay.test.js:1585:3 › overlay › should show an error after invalidation ────────
[chromium] › overlay.test.js:1645:3 › overlay › should show a warning after invalidation ───────
[chromium] › overlay.test.js:1705:3 › overlay › should show error for uncaught runtime error ───
[chromium] › overlay.test.js:1750:3 › overlay › should not show filtered runtime error ─────────
[chromium] › overlay.test.js:1791:3 › overlay › should show error for uncaught promise rejection
[chromium] › overlay.test.js:1838:3 › overlay › should not show filtered promise rejection ─────
[chromium] › overlay.test.js:1881:3 › overlay › should show overlay when "Content-Security-Policy" is "default-src 'self'" was used
81 passed (7.1m)
|
This job failed
Loading