playwright/tests
Dmitry Gozman 47045ba48d
chore(test runner): run hooks/modifiers as a part of the test (#12329)
chore(test runner): run hooks/modifiers as a part of the test

This moves `beforeAll`, `afterAll` and some modifiers from running
as a separate entity into running inside a test.

Pros:
- All errors are reported as test errors.
- All artifacts are collected as test artifacts.
- Reporters support this out of the box.

Details:
- Each test computes the necessary hooks to run and runs them.
- Teardown is usually performed during the test (on test failure or worker stop).
- `skipRemaining` is added to `DonePayload` to preserve the behavior
  where `beforeAll` hook failure skips subsequent tests.
  This behavior can now be improved to only target tests affected by this hook.
2022-02-28 11:42:47 -08:00
..
android test: migrate to upstream fixtures (#9835) 2021-10-28 08:31:30 -07:00
assets feat: introduce disableAnimations option for screenshots (#11870) 2022-02-09 12:52:11 -08:00
chromium fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
config feat(remote): send browser/channel/headless in a header (#12205) 2022-02-18 07:54:33 -08: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 feat(codegen): use web-first page assertions to match URL (#12177) 2022-02-17 20:52:35 +01:00
page test: skip test in electron 2022-02-26 00:17:37 +01:00
playwright-test chore(test runner): run hooks/modifiers as a part of the test (#12329) 2022-02-28 11:42:47 -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 chore: do not double trim in trace viewer (#12338) 2022-02-24 21:55:50 +01: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: add test for cookies with expiration (#12304) 2022-02-25 23:00:51 +01: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 test: mark failing android tests as fixme / fix them (#12371) 2022-02-25 22:56:51 +01: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 chore: use transport for BrowserType.connect (#12196) 2022-02-17 20:48:14 -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: intercept socks proxy in the driver (#12021) 2022-02-13 14:03:47 -08:00
component-parser.spec.ts feat: add key support on react engine (#11970) 2022-02-09 11:33:15 -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 fix(fetch): always return non-empty body regardless of request method (#12102) 2022-02-15 09:06:21 -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: match default font families in headless chromium (#11340) 2022-02-11 09:06:17 -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 chore: refactor internal cli commands to use commander (#12146) 2022-02-16 09:54:12 -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 chore(codegen): do not over-escape spaces (#12155) 2022-02-17 01:01:46 +01: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 fix(tracing): do not capture iframes in head (#12126) 2022-02-16 09:09:15 -08:00
tsconfig.json fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
video.spec.ts test: skip test when run with PWTEST_TRACING (#11999) 2022-02-10 09:45:18 -08:00
web-socket.spec.ts test: introduce #smoke tests (#11135) 2021-12-29 18:51:28 -08:00