playwright/packages/playwright-test/src
Dmitry Gozman 79163e802a
fix(test runner): screenshot immediately after failure (#15159)
Previously, screenshot was taken after hooks and fixtures teardown.
However, hooks can easily modify the state of the page, and
screenshot would not reflect the moment of failure.

Instead, we take screenshots immediately after the test function
finishes with an error.
2022-06-27 17:46:39 -07:00
..
matchers fix(test runner): toHaveScreenshot should not overwrite matching expectations (#15028) 2022-06-21 18:01:25 -07:00
plugins fix(ct): relax react import pattern (#14896) 2022-06-15 16:14:45 -07:00
reporters fix(reporter): line reporter should not swallow half-line stdout (#15114) 2022-06-27 11:25:42 -07:00
third_party chore: bundle pwt deps (#13622) 2022-04-18 21:47:18 -07:00
babelBundle.ts chore: use vite plugin for registry (#13658) 2022-04-21 17:30:17 -07:00
cli.ts chore: pass config w/ cli overrides to plugins (#13835) 2022-04-29 13:32:39 -07:00
DEPS.list chore: restore component testing options (#13910) 2022-05-03 15:48:46 -07:00
dispatcher.ts fix(test runner): when worker exits unexpectedly, fail a single test (#14608) 2022-06-02 21:13:47 -07:00
expect.ts chore: move multi-select assertion to toHaveValues (#14595) 2022-06-02 16:01:34 -04:00
expectBundle.ts chore: make bundles typed (#13620) 2022-04-18 17:50:25 -07:00
experimentalLoader.ts fix(esm): respect source maps in esm-transpiled code (#14561) 2022-06-01 16:50:23 -07:00
fixtures.ts fix(leak): do not retain test fixtures in worker fixtures (#14363) 2022-05-23 16:54:56 -07:00
globals.ts chore: always import type (#13365) 2022-04-06 14:57:14 -07:00
index.ts fix(test runner): screenshot immediately after failure (#15159) 2022-06-27 17:46:39 -07:00
ipc.ts chore: hide plugins for now (#13908) 2022-05-03 14:25:56 -07:00
loader.ts fix(test runner): ignore undefined values in fixtures definitions (#15119) 2022-06-27 11:31:41 -07:00
mount.ts feat: add allow/block serviceWorkers option (#14714) 2022-06-08 18:27:51 -04:00
profiler.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
runner.ts chore: respect sigint in global setup (#14805) 2022-06-12 13:06:00 -07:00
sigIntWatcher.ts chore: use utils via index export (5) (#13413) 2022-04-07 20:18:22 -07:00
test.ts feat: rewrite gitCommitInfo plugin, drop GlobalInfo & attachments (#13837) 2022-05-02 16:28:14 -07:00
testInfo.ts fix(test runner): screenshot immediately after failure (#15159) 2022-06-27 17:46:39 -07:00
testType.ts fix(test runner): ignore undefined values in fixtures definitions (#15119) 2022-06-27 11:31:41 -07:00
timeoutManager.ts chore: make bundles typed (#13620) 2022-04-18 17:50:25 -07:00
transform.ts fix(ct): respect boolean shorthands (#14798) 2022-06-10 17:34:21 -07:00
tsxTransform.ts fix(ct): respect boolean shorthands (#14798) 2022-06-10 17:34:21 -07:00
types.ts fix(runner): ignore .gitignore if testDir is explicitly configured (#14430) 2022-05-26 14:39:51 -07:00
util.ts fix(test runner): ignore undefined values in fixtures definitions (#15119) 2022-06-27 11:31:41 -07:00
utilsBundle.ts chore: bundle pwt deps (#13622) 2022-04-18 21:47:18 -07:00
worker.ts fix: do not override console object in worker (#14455) 2022-05-29 09:46:19 -07:00
workerRunner.ts fix(test runner): screenshot immediately after failure (#15159) 2022-06-27 17:46:39 -07:00