playwright/tests
Andrey Lushnikov e57b4b5073
cherry-pick(#12070): fix: propagate exit code in experimental mode (#12133)
SHA: 5db7ce5964

In experimental ESM mode a child process is forked in order to run the tests. Currently the exit code of this child process is not propagated to the exit code of the parent process, which means that the process exits with a status code of `0` even if some of the tests failed.

This makes it difficult to use Playwright in CI in experimental mode, as the CI pipeline as a whole will pass despite the test failures.

This change addresses this by propagating the exit code in the case where it is non-zero.

Co-authored-by: pierscowburn <me@pierscowburn.com>
2022-02-15 13:25:14 -08:00
..
android test: migrate to upstream fixtures (#9835) 2021-10-28 08:31:30 -07:00
assets fix(drag&drop): relax layout shift logic when dropping (#11760) 2022-01-31 16:21:35 -08:00
chromium fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
config chore: pin production dependencies (#11793) 2022-02-02 11:14:41 +01:00
electron fix(electron): make recordVideo work (#10810) 2021-12-08 17:34:50 -08:00
emulation-focus.spec.ts-snapshots test: roll to folio@0.4.0-alpha28 (#6918) 2021-06-04 20:54:58 -07:00
firefox test: remove browserOptions (#9829) 2021-10-27 19:00:06 -07:00
inspector test: enable "should record open in a new tab with url" on webkit (#11917) 2022-02-07 16:09:11 -08:00
page cherry-pick(#11974): test: fix tests for chromium-based browser channels (#11979) 2022-02-09 11:40:50 -08:00
playwright-test cherry-pick(#12070): fix: propagate exit code in experimental mode (#12133) 2022-02-15 13:25:14 -08:00
screenshot.spec.ts-snapshots test: add screenshot test with hanging main resource (#9972) 2021-11-02 16:55:32 +01:00
trace-viewer feat(tracing): suport loading multiple files in trace viewer (#11880) 2022-02-07 17:05:42 -08:00
beforeunload.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browser.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-add-cookies.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-add-init-script.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-base-url.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-basic.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-clearcookies.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
browsercontext-cookies.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-credentials.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-csp.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-device.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-dsf.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-expose-function.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
browsercontext-fetch.spec.ts chore: bump dev dependencies (#11779) 2022-02-01 17:12:11 +01:00
browsercontext-locale.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-network-event.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
browsercontext-page-event.spec.ts test: mark cltr+click test as timing out on windows (#11840) 2022-02-03 09:09:38 -08:00
browsercontext-pages.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
browsercontext-proxy.spec.ts feat(proxy): unify local network proxy behavior (#10719) 2021-12-10 14:01:56 -08:00
browsercontext-route.spec.ts fix: falsey behavior in route.continue, page.post, testInfo.attach (#11421) 2022-01-24 15:06:36 -08:00
browsercontext-set-extra-http-headers.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
browsercontext-storage-state.spec.ts fix: support cookies with empty value (#9376) 2021-10-07 15:37:47 -07:00
browsercontext-strict.spec.ts fix: strict mode on page.* methods on context level (#8324) 2021-08-19 23:08:28 +02:00
browsercontext-timezone-id.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
browsercontext-user-agent.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
browsercontext-viewport-mobile.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
browsercontext-viewport.spec.ts test: newContext works when both screen and viewport specified (#9520) 2021-10-18 10:45:47 -07:00
browsertype-basic.spec.ts test: remove browserOptions (#9829) 2021-10-27 19:00:06 -07:00
browsertype-connect.spec.ts fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
browsertype-launch-selenium.spec.ts test: move grid tests to installation-tests (#10418) 2021-11-18 15:32:09 -08:00
browsertype-launch-server.spec.ts test: remove browserOptions (#9829) 2021-10-27 19:00:06 -07:00
browsertype-launch.spec.ts test: remove browserOptions (#9829) 2021-10-27 19:00:06 -07:00
capabilities.spec.ts test: decrease threshold for flaky "should play audio" (#11878) 2022-02-04 16:14:48 -08:00
channels.spec.ts chore(tracing): add tracing to APIRequestContext (#11502) 2022-01-22 11:25:13 -08:00
component-parser.spec.ts chore: move some files out of server/common (#11466) 2022-01-18 19:13:51 -08:00
css-parser.spec.ts fix(monorepo): explicitly list package.json exports instead of using glob patterns (#9584) 2021-10-19 12:28:02 -04:00
defaultbrowsercontext-1.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
defaultbrowsercontext-2.spec.ts test: reenable Chromium Windows cookies test (#11176) 2022-01-04 12:14:35 -08:00
download.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
downloads-path.spec.ts feat(acceptDownload): revert acceptDownload (#10709) 2021-12-06 09:25:24 -08:00
emulation-focus.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
favicon.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
geolocation.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
global-fetch-cookie.spec.ts fix(server): handle = in cookie values correctly (#11613) 2022-01-26 11:27:43 -08:00
global-fetch.spec.ts cherry-pick(1.19): always return non-empty body regardless of request method (#12102) (#12121) 2022-02-15 11:24:15 -08:00
har.spec.ts fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
headful.spec.ts fix(chromium): close all javascript dialogs when closing context (#11614) 2022-01-25 13:52:18 -08:00
hit-target.spec.ts fix(drag&drop): relax layout shift logic when dropping (#11760) 2022-01-31 16:21:35 -08:00
ignorehttpserrors.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
index.d.ts test: added tests for WebSocket over Socks proxy (#7235) 2021-06-24 18:50:16 +02:00
launcher.spec.ts test: remove browserOptions (#9829) 2021-10-27 19:00:06 -07:00
logger.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
modernizr.spec.ts feat(webkit): roll to r1578 (#10323) 2021-11-15 08:43:51 -08:00
pdf.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
permissions.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
popup.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
port-forwarding-server.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
proxy.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
resource-timing.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00
screenshot.spec.ts chore(chromium): Capture off-screen content without resizing viewport (#10606) 2021-11-30 14:11:15 -08:00
selector-generator.spec.ts feat(codegen): make selector generator strict (#11856) 2022-02-04 07:34:23 -08:00
selectors-register.spec.ts chore(zones): prepare to remove wrapApiCall, introduce zones (#10427) 2021-11-18 22:30:09 -08:00
signals.spec.ts fix: do not show taskkill.exe output (#10244) 2021-11-11 18:32:22 +01:00
slowmo.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
snapshotter.spec.ts fix(tracing): trace frame (#10846) 2021-12-17 10:43:19 -08:00
tap.spec.ts feat(input): restore modified layout shift check (#11032) 2022-01-03 17:46:04 -08:00
tracing.spec.ts test: request tracing start/stop (#11603) 2022-01-25 12:04:03 -08:00
tsconfig.json fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
video.spec.ts fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
web-socket.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00