chore: refactor e2e tests to playwright #6467
Annotations
10 errors and 1 notice
test\helpers\playwright-custom-expects.js#L13
1) [chromium] › stats.test.js:111:5 › stats › should work when "stats" is not specified ──────────
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-when-stats-is-not-specified-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
2) [chromium] › stats.test.js:111:5 › stats › should work using "{}" value for the "stats" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-using-value-for-the-stats-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
3) [chromium] › stats.test.js:111:5 › stats › should work using "undefined" value for the "stats" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-using-undefined-value-for-the-stats-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
4) [chromium] › stats.test.js:111:5 › stats › should work using "false" value for the "stats" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-using-false-value-for-the-stats-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
5) [chromium] › stats.test.js:111:5 › stats › should work using "errors-only" value for the "stats" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-using-errors-only-value-for-the-stats-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
6) [chromium] › stats.test.js:111:5 › stats › should work using "{ assets: false }" value for the "stats" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-using-assets-false-value-for-the-stats-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
7) [chromium] › stats.test.js:111:5 › stats › should work using "{ colors: { green: "" }}" value for the "stats" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-using-colors-green-32m-value-for-the-stats-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
8) [chromium] › stats.test.js:111:5 › stats › should work using "{ warningsFilter: 'test' }" value for the "stats" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-using-warningsFilter-test-value-for-the-stats-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
9) [chromium] › stats.test.js:111:5 › stats › should work and respect the "ignoreWarnings" option
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js-snapshots\stats-should-work-and-respect-the-ignoreWarnings-option-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\stats.test.js:133:11
|
test\helpers\playwright-custom-expects.js#L13
10) [chromium] › target.test.js:28:5 › target › should work using "false" target ─────────────────
Error: A snapshot doesn't exist at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\target.test.js-snapshots\target-should-work-using-false-target-1-chromium-win32.txt, writing actual.
at ..\helpers\playwright-custom-expects.js:13
11 | try {
12 | const serialized = JSON.stringify(received);
> 13 | await expect(serialized).toMatchSnapshot();
| ^
14 | pass = true;
15 | } catch (e) {
16 | matcherResult = e.matcherResult;
at Object.toMatchSnapshotWithArray (D:\a\webpack-dev-server\webpack-dev-server\test\helpers\playwright-custom-expects.js:13:32)
at D:\a\webpack-dev-server\webpack-dev-server\test\e2e\target.test.js:63:11
|
114 failed
[chromium] › stats.test.js:111:5 › stats › should work when "stats" is not specified ───────────
[chromium] › stats.test.js:111:5 › stats › should work using "{}" value for the "stats" option ─
[chromium] › stats.test.js:111:5 › stats › should work using "undefined" value for the "stats" option
[chromium] › stats.test.js:111:5 › stats › should work using "false" value for the "stats" option
[chromium] › stats.test.js:111:5 › stats › should work using "errors-only" value for the "stats" option
[chromium] › stats.test.js:111:5 › stats › should work using "{ assets: false }" value for the "stats" option
[chromium] › stats.test.js:111:5 › stats › should work using "{ colors: { green: "" }}" value for the "stats" option
[chromium] › stats.test.js:111:5 › stats › should work using "{ warningsFilter: 'test' }" value for the "stats" option
[chromium] › stats.test.js:111:5 › stats › should work and respect the "ignoreWarnings" option ─
[chromium] › target.test.js:28:5 › target › should work using "false" target ───────────────────
[chromium] › target.test.js:28:5 › target › should work using "browserslist:defaults" target ───
[chromium] › target.test.js:28:5 › target › should work using "web" target ─────────────────────
[chromium] › target.test.js:28:5 › target › should work using "webworker" target ───────────────
[chromium] › target.test.js:28:5 › target › should work using "node" target ────────────────────
[chromium] › target.test.js:28:5 › target › should work using "async-node" target ──────────────
[chromium] › target.test.js:28:5 › target › should work using "electron-main" target ───────────
[chromium] › target.test.js:28:5 › target › should work using "electron-preload" target ────────
[chromium] › target.test.js:28:5 › target › should work using "electron-renderer" target ───────
[chromium] › target.test.js:28:5 › target › should work using "nwjs" target ────────────────────
[chromium] › target.test.js:28:5 › target › should work using "node-webkit" target ─────────────
[chromium] › target.test.js:28:5 › target › should work using "es5" target ─────────────────────
[chromium] › target.test.js:28:5 › target › should work using "web,es5" target ─────────────────
[chromium] › watch-files.test.js:49:5 › watchFiles option › should work with string and path to file › should reload when file content is changed
[chromium] › watch-files.test.js:115:5 › watchFiles option › should work with string and path to directory › should reload when file content is changed
[chromium] › watch-files.test.js:181:5 › watchFiles option › should work with string and glob › should reload when file content is changed
[chromium] › watch-files.test.js:252:5 › watchFiles option › should not crash if file doesn't exist › should reload when file content is changed
[chromium] › watch-files.test.js:323:5 › watchFiles option › should work with object with single path › should reload when file content is changed
[chromium] › watch-files.test.js:391:5 › watchFiles option › should work with object with multiple paths › should reload when file content is changed
[chromium] › watch-files.test.js:467:5 › watchFiles option › should work with array config › should reload when file content is changed
[chromium] › watch-files.test.js:603:9 › watchFiles option › should work with options › {"poll":true} › should reload when file content is changed
[chromium] › watch-files.test.js:603:9 › watchFiles option › should work with options › {"poll":200} › should reload when file content is changed
[chromium] › watch-files.test.js:603:9 › watchFiles option › should work with options › {"usePolling":true} › should reload when file content is changed
[chromium] › watch-files.test.js:603:9 › watchFiles option › should work with options › {"usePolling":true,"poll":200} › should reload when file content is changed
[chromium] › watch-files.test.js:603:9 › watchFiles option › should work with options › {"usePolling":f
|
This job failed
Loading