chore: refactor e2e tests to playwright #6564
Annotations
6 errors, 3 warnings, and 1 notice
Run E2E tests for webpack version latest:
test/e2e/overlay.test.js#L303
1) [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: "/home/runner/work/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-after-fix-snap-actual.webpack5"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>
</body>
"
301 | plugins: [prettierHTML, prettierCSS],
302 | }),
> 303 | ).toMatchSnapshotWithArray("page html after fix");
| ^
304 | } catch (error) {
305 | fs.writeFileSync(pathToFile, originalCode);
306 | throw error;
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:303:9
|
Run E2E tests for webpack version latest:
test/e2e/overlay.test.js#L1
1) [chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
Run E2E tests for webpack version latest:
test/e2e/overlay.test.js#L291
1) [chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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 /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:291:18
|
Run E2E tests for webpack version latest:
test/e2e/overlay.test.js#L303
1) [chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/home/runner/work/webpack-dev-server/webpack-dev-server/test-results/overlay-overlay-should-not-921b1-n-an-error-then-hide-on-fix-chromium-retry2/overlay-should-not-show-initially-then-show-on-an-error-then-hide-on-fix-page-html-after-fix-snap-actual.webpack5"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>
</body>
"
301 | plugins: [prettierHTML, prettierCSS],
302 | }),
> 303 | ).toMatchSnapshotWithArray("page html after fix");
| ^
304 | } catch (error) {
305 | fs.writeFileSync(pathToFile, originalCode);
306 | throw error;
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:303:9
|
Run E2E tests for webpack version latest:
test/e2e/overlay.test.js#L303
1) [chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchSnapshotWithArray(expected)
Expected: "/home/runner/work/webpack-dev-server/webpack-dev-server/test-results/overlay-overlay-should-not-921b1-n-an-error-then-hide-on-fix-chromium-retry3/overlay-should-not-show-initially-then-show-on-an-error-then-hide-on-fix-page-html-after-fix-snap-actual.webpack5"
Received: "<body>
<h1>webpack-dev-server is running...</h1>
<script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>
</body>
"
301 | plugins: [prettierHTML, prettierCSS],
302 | }),
> 303 | ).toMatchSnapshotWithArray("page html after fix");
| ^
304 | } catch (error) {
305 | fs.writeFileSync(pathToFile, originalCode);
306 | throw error;
at /home/runner/work/webpack-dev-server/webpack-dev-server/test/e2e/overlay.test.js:303:9
|
Run E2E tests for webpack version latest
Process completed with exit code 1.
|
Run E2E tests for webpack version latest:
[chromium] › hot-and-live-reload.test.js#L1
[chromium] › hot-and-live-reload.test.js took 28.7s
|
Run E2E tests for webpack version latest:
[chromium] › multi-compiler.test.js#L1
[chromium] › multi-compiler.test.js took 21.5s
|
Run E2E tests for webpack version latest:
[chromium] › logging.test.js#L1
[chromium] › logging.test.js took 19.2s
|
Run E2E tests for webpack version latest
1 failed
[chromium] › overlay.test.js:230:3 › overlay › should not show initially, then show on an error, then hide on fix
4 skipped
122 passed (2.5m)
|
Loading