playwright/packages
Dmitry Gozman bc5acf785f fix(trace): do not save trace on failure after success in test+hooks
Previously, we always saved the trace for each context until the
very end of the test, and then either repacked them or abandoned
depending on the `trace` mode.

However, this could result in downloading large traces from the
remote server when the tests succeeded but trace was set to
`retain-on-failure`. This slows down remote operations quite a lot.

The fix is to carefully consider whether the trace should be
saved or abandoned, based on whether the test and afterEach hooks
have finished successfully.

This could be a minor regression, where the trace will not be saved
if one of the fixture teardowns fails after the context has been
already closed, and trace mode was `retain-on-failure` or
`retain-on-first-failure`.
2025-02-12 14:45:54 +00:00
..
html-reporter chore(html-report): make scrollbar gutter stable (#34732) 2025-02-12 05:55:36 -08:00
playwright fix(trace): do not save trace on failure after success in test+hooks 2025-02-12 14:45:54 +00:00
playwright-browser-chromium chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-browser-firefox chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-browser-webkit chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-chromium chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-core chore(chromium): re-enable PlzDedicatedWorker feature (#34400) 2025-02-12 13:22:35 +00:00
playwright-ct-core chore: move utils that are user in server to server/utils (2) (#34736) 2025-02-11 17:19:27 -08:00
playwright-ct-react chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-ct-react17 chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-ct-svelte chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-ct-vue chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-firefox chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-test chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
playwright-tools chore: organize imports in packages (#34681) 2025-02-07 14:44:00 -08:00
playwright-webkit chore: mark v1.51.0-next (#34382) 2025-01-17 12:34:59 -08:00
protocol/src feat: add failOnStatusCode option to API request context (#34346) 2025-02-11 13:23:11 -08:00
recorder chore: fix recorder tsconfig linting (#34704) 2025-02-10 13:23:04 +01:00
trace/src chore: organize imports in packages (#34681) 2025-02-07 14:44:00 -08:00
trace-viewer feat(ui): "fix with ai" button (#34708) 2025-02-10 17:47:27 +01:00
web fix(ui-mode): Watch mode button doesn't show active when test selected (#34581) 2025-02-11 10:32:39 -08:00