Pavel Feldman
c9d329155d
chore: remove Step prefix from trace and reports ( #36149 )
2025-06-02 13:40:22 -07:00
Simon Knott
4cb2431c33
chore: trim error context and make it singular ( #36117 )
2025-05-28 15:10:24 +02:00
Pavel Feldman
9a53dc2d07
chore: two-line trace view (4) ( #36070 )
2025-05-23 16:03:50 -07:00
Pavel Feldman
a15e94aa3f
chore: two-line trace view (3) ( #36058 )
2025-05-22 19:00:33 -07:00
Pavel Feldman
e0365747ce
chore: two-line trace view (2) ( #36055 )
2025-05-22 14:50:54 -07:00
Pavel Feldman
6a2a70619a
chore: two-line trace view (1) ( #36025 )
2025-05-22 09:49:37 -07:00
Pavel Feldman
27ce0eb867
chore: move from apiName to title in tracing ( #36003 )
2025-05-19 16:01:45 -07:00
Pavel Feldman
6e8c67a3ce
chore: do not hide error context ( #36000 )
2025-05-19 13:35:22 -07:00
Pavel Feldman
0e9cf0a3ad
chore: annotate protocol methods with internal & titles ( #35979 )
2025-05-16 14:01:09 -07:00
Adam Gastineau
854534cdfe
fix(trace): avoid recording BindingCall actions ( #35851 )
2025-05-13 05:28:14 -07:00
Simon Knott
f44cd3050b
chore(ui): hide top-level attach actions ( #35040 )
2025-03-05 15:37:25 +01:00
Simon Knott
88623ae3c2
refactor: store copy prompt contents in attachment ( #34995 )
2025-03-04 17:20:36 +01:00
Simon Knott
6dcb7d2bf5
chore: remove pageSnapshot option ( #34962 )
...
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-02-28 13:16:58 +01:00
Simon Knott
8ed2f4319e
chore: add pageSnapshot option ( #34669 )
2025-02-11 11:04:57 -08:00
Yury Semikhatsky
f1a392f844
chore: do not store empty step.attachments[] in trace ( #34579 )
2025-02-05 08:30:03 -08:00
Adam Gastineau
a2e2dfd446
feat: Enable snapshots for most remaining public commands ( #34072 )
2025-01-10 05:04:44 -08:00
Simon Knott
04a3574f80
feat(reporter): report TestStep#attachments
( #34037 )
2025-01-02 17:48:59 +01:00
Dmitry Gozman
67471cb3c5
test: make a few tests headed/headless agnostic ( #33268 )
2024-10-24 06:03:36 -07:00
Dmitry Gozman
b3a82bef46
feat: do not record route calls in the trace ( #32723 )
...
These are represented in the network pane instead.
2024-09-21 10:17:59 -07:00
Simon Knott
f6219e6e79
Revert "feat(tracing): add .pwtrace to trace file extension" ( #32648 )
...
Reverts microsoft/playwright#32581
Relates
https://github.com/microsoft/playwright/issues/32226#issuecomment-2351164727
2024-09-17 15:32:30 +02:00
Simon Knott
aeb4d182f7
feat(tracing): add .pwtrace to trace file extension ( #32581 )
...
Closes https://github.com/microsoft/playwright/issues/32226
I've updated every mention of `.trace.zip` except for the release notes.
2024-09-14 10:17:07 +02:00
Dmitry Gozman
c4bb24f02f
feat(test runner): record trace after a test-scoped fixture teardown times out ( #32160 )
...
Fixes #30718 , fixes #31537 .
2024-08-16 08:03:02 -07:00
Yury Semikhatsky
fef27395a5
chore(trace): do not nest API actions based on time ( #31990 )
...
They should be properly nested based on Node.js zones now.
2024-08-05 10:06:14 -07:00
Yury Semikhatsky
1074a765e4
fix(trace): do not place expect into unfinished api calls based on time ( #31970 )
...
Fixes https://github.com/microsoft/playwright/issues/31959
2024-08-01 14:14:10 -07:00
Dmitry Gozman
6ee8f1de2d
Revert "chore: move artifacts recording to TestLifecycleInstrumentation ( #30935 )" ( #31686 )
...
This reverts commit ba5b46044469b783b64c94b9986460c38e020c77.
2024-07-15 07:01:51 -07:00
Dmitry Gozman
074cc7d467
Revert "feat(trace): record trace upon browser closure ( #31563 )" ( #31677 )
...
This reverts commit bc27ca225e69995f238192426df4ccb3f940a50d. Considered
too risky.
2024-07-15 01:08:51 -07:00
Dmitry Gozman
a1f82b0bb6
fix(trace): do not corrupt test runner actions when no library trace is present ( #31564 )
...
Recent logic that matches either by `stepId` or by `apiName`+`wallTime`
did not account for "no library trace" scenario.
2024-07-10 09:12:06 -07:00
Dmitry Gozman
bc27ca225e
feat(trace): record trace upon browser closure ( #31563 )
...
Retaining traces in the following scenarios:
- browser crash;
- manual `browser.close()`;
- implicit `browser.close()` from the `browser` fixture upon test end.
This does not affect the library, where `browser.close()` will not
retain the trace and will close the browser as fast as possible.
References #31541 , #31535 , #31537 .
2024-07-06 11:34:34 -07:00
Dmitry Gozman
ba5b460444
chore: move artifacts recording to TestLifecycleInstrumentation ( #30935 )
...
The spirit of this change is reverting #23153 . Since that time, we have
moved tracing and `artifactsDir` lifetime into the test runner, so the
reason for revert is mitigated.
Fixes #30287 , fixes #30718 , fixes #30959 .
2024-05-29 18:05:17 -07:00
Dmitry Gozman
d214778548
chore(test runner): move timeout handling to the top, stop inheriting runnable ( #29857 )
2024-03-08 15:19:36 -08:00
Dmitry Gozman
5eb8fea616
chore: rewrite worker main through TestInfoImpl._runAsStage ( #29644 )
2024-03-04 19:36:58 -08:00
Stevan Freeborn
52b803ecf5
feat(trace mode): add on-first-failure mode for traces ( #29647 )
...
Implements the changes suggested in #29531
2024-02-28 14:39:18 -08:00
Dmitry Gozman
f9aebda5db
fix(fixtures): attribute teardown step to the right TestInfo instance ( #29523 )
2024-02-20 12:35:43 -08:00
Dmitry Gozman
dc9cddde95
chore: do not rely on zones for predefined steps ( #29485 )
...
This fixes some edge cases where fixtures and steps inside them were
attached to the wrong parent (see the new test).
This will also allow to replace some `runAsStep` calls with a flat list
of tasks to do that do not rely on lexical scope.
2024-02-15 12:49:08 -08:00
Dmitry Gozman
5ee7179b13
fix(test runner): make TestTracing responsible for trace management ( #29181 )
...
... instead of a fixture.
Fixes #29133 , fixes #28733 , fixes #28476 .
2024-01-26 15:52:25 -08:00
Pavel Feldman
2bd7d67adc
chore: render testInfo errors in the Errors tab ( #28179 )
...
Fixes https://github.com/microsoft/playwright/issues/28056
2023-11-16 11:37:57 -08:00
Pavel Feldman
25b9c4eb4a
chore: do not lose error name for js errors ( #28177 )
2023-11-15 18:27:32 -08:00
Dmitry Gozman
6e62a11643
fix(trace): EPERM on windows ( #27693 )
...
When merging trace files, we sometimes left open read streams from the
zip, which prevents it from being removed.
Fixes #27286 .
2023-10-19 11:14:17 -07:00
Pavel Feldman
527d260cbf
chore: hide tracing calls from traces ( #27096 )
2023-09-15 12:55:49 -07:00
Pavel Feldman
38f1e62642
chore: use custom expect message in trace step ( #26752 )
2023-08-28 14:48:24 -07:00
Pavel Feldman
1ceaa923ea
chore: create artifacts dir in the test runner ( #26594 )
2023-08-21 19:41:10 -07:00
Dmitry Gozman
4be1e479ea
fix(artifacts): only attach screenshot when it succeeds ( #24406 )
...
Fixes #24378 .
2023-07-26 15:22:04 -07:00
Dmitry Gozman
9d0bba9c99
fix(tracing): do not throw on missing attachments ( #24409 )
...
Fixes #24378 .
2023-07-25 14:32:56 -07:00
Pavel Feldman
608e336dba
fix(error): create a step for raw runtime error ( #24057 )
...
Fix https://github.com/microsoft/playwright/issues/23850
2023-07-06 10:48:12 -07:00
Pavel Feldman
df57fb594c
fix(trace): render items under expect.toPass ( #24016 )
...
Fixes: https://github.com/microsoft/playwright/issues/23942
2023-07-05 11:20:28 -07:00
Pavel Feldman
d1666d2dde
chore: include test-end-screenshot in a trace ( #23457 )
...
Fixes https://github.com/microsoft/playwright/issues/23222
2023-06-01 20:29:32 -07:00
Dmitry Gozman
5d5314e006
test: make sure trace is recorded for custom fixtures ( #23418 )
...
References #23220 .
2023-05-31 21:50:20 -07:00
Pavel Feldman
b814e8a5f1
chore: bring back per test artifacts ( #23153 )
2023-05-23 09:36:35 -07:00
Pavel Feldman
969e5ff1aa
test: add attachment tests ( #23143 )
2023-05-18 11:48:53 -07:00
Pavel Feldman
4c4085e105
chore: partially hide built-in fixture steps ( #23005 )
2023-05-12 19:15:31 -07:00