Max Schmitt
d463d1f285
fix(snapshotter): allow rendering of & in STYLE tags ( #31627 )
...
Fixes https://github.com/microsoft/playwright/issues/31607
2024-07-15 17:33:22 +02:00
Max Schmitt
a3b0f0cba8
chore: address deprecated Vite warnings ( #31618 )
2024-07-10 22:32:08 +02: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
Pavel Feldman
f374f8db38
chore: follow up to the attachments preview change ( #31598 )
2024-07-09 09:58:59 -07:00
Max Schmitt
0c11d6ed80
feat(trace-viewer): allow pasting traces ( #31608 )
2024-07-09 13:36:35 +02:00
Álvaro Martínez
00131c1e3f
feat(trace-viewer): display text attachments in ui mode ( #31215 )
2024-07-08 11:16:14 -07:00
Max Schmitt
4dfa55d1f1
chore(trace-viewer): move call tab copy button next to the value ( #31586 )
2024-07-08 10:23:19 +02:00
Dmitry Gozman
48db1b1663
fix(ui mode): allow --updateSnapshots ( #31584 )
...
Fixes #31408 .
2024-07-08 01:08:57 -07:00
ryanrosello-og
e36ebb6ede
feat(trace-viewer) add request urls for actions initiated via APIRequestContext ( #31534 )
2024-07-04 11:59:56 +02:00
ryanrosello-og
262586a46a
feat(trace-viewer) add copy to clipboard on the Source > Stacktrace tab ( #31394 )
2024-07-02 09:09:39 -07:00
Rui Figueira
9bc45ea2fc
feature(trace-viewer): embedded mode support PoC ( #30885 )
...
Companion PR of https://github.com/microsoft/playwright-vscode/pull/483
2024-06-28 10:36:11 -07:00
Yury Semikhatsky
a2b116aa39
fix(trace): ensure har entry _monotonicTime is always start time ( #31385 )
...
* Revert harTracer change from
aeba083da0
to make sure that har.Entry._monotonicTime always represents request
start time. The issue from the corresponding report was due to HEAD and
GET request sent for the same URL, that use case is still addressed as
we match by url + method
* Adjust resources monotonic time as well when several contexts are
shown in the trace viewer.
Fixes https://github.com/microsoft/playwright/issues/31133
2024-06-19 15:06:20 -07:00
ryanrosello-og
ee63843f7d
feat(trace-viewer): add request method/status to the network details tab ( #31274 )
2024-06-19 09:05:20 -07:00
Carter Sande
701a405bdf
fix(trace-viewer): Rewrite file URIs in snapshots, like blob URIs. ( #31113 )
...
This allows snapshots of file:/// pages with external stylesheets,
images, etc to be rendered correctly in the trace viewer. (Otherwise, it
tries to request the file:/// URIs directly and the requests get blocked
by the browser.)
Fixes #31112 .
2024-06-10 11:44:52 +02:00
Yury Semikhatsky
9a11be3305
chore(trace-viewer): grid view z-index, source column in resource details ( #31094 )
...
New look for multiple contexts:
<img width="585" alt="image"
src="https://github.com/microsoft/playwright/assets/9798949/02dc5f54-0946-40a9-9459-942c4362a32e ">
2024-05-30 14:45:33 -07:00
Yury Semikhatsky
4c020c9861
chore(trace-viewer): preserve column widths after showing resource details ( #31093 )
...
* Column widths are now stored on in the NetworkPanel context, this way
they are not reset after selecting an empty range (and changing position
of the NetworkGridView in the component tree).
* Column widths values are now preserved if column set changes (e.g.
selecting entries from a single context and then from multiple
contexts).
2024-05-30 12:21:32 -07:00
Rui Figueira
f254290ab4
fix(trace-viewer): fix snapshot.html ( #31033 )
...
Actual path to get trace contexts is /contexts, not /context
2024-05-28 13:14:22 -07:00
Pavel Feldman
bff1e41add
chore: do not render post data if there is none ( #31008 )
...
Fixes https://github.com/microsoft/playwright/issues/30992
2024-05-24 09:27:49 -07:00
Pavel Feldman
7b27fc3916
chore: pass outputDir to uimode ( #30941 )
...
Fixes https://github.com/microsoft/playwright/issues/30886
2024-05-21 14:36:31 -07:00
Yury Semikhatsky
2734a05342
feat(trace-viewer): show nework request source id ( #30810 )
...
<img width="1392" alt="image"
src="https://github.com/microsoft/playwright/assets/9798949/dcfd4d71-4a41-48ac-9f24-2996200f966a ">
Fixes https://github.com/microsoft/playwright/issues/28903
2024-05-15 16:29:26 -07:00
Yury Semikhatsky
fb319e6d3d
fix: match client step and server action by explicit stepId ( #30641 )
...
Matching bu `apiName@wallTime` fails when two actions start at the same
time, e.g. two parallel api requests. Moreover, it results in trace
actions that have parent set to themselves, which in turn causes
infinite loop in the trace viewer. To avoid this problems we write
stepId explicitly to the library trace and use those step ids to find
corresponding test runner steps.
The stepId is passed via zone in case of expect, because the protocol
step is quite deep in the call chain after or explicitly in case of API
call steps created by the test runner instrumentation.
2024-05-14 12:10:46 -07:00
Yury Semikhatsky
873f3a03ac
chore(trace): add context create event for test runner ( #30697 )
...
Adding metadata event to the test.trace to simplify time computation
logic.
2024-05-14 09:00:33 -07:00
Yury Semikhatsky
00bf7ea815
chore(trace-viewer): more clear classification of trace contexts ( #30737 )
2024-05-09 17:28:39 -07:00
Yury Semikhatsky
a50cd30519
chore: use monotonic time for sorting ( #30735 )
...
* Use only monotonicTime for sorting, do not use wallTime for that
* Since test runner and the library can be running on different
machines, those machines may have clocks which are not synchronized. To
avoid problems in such cases we compute delta between test runner and
and library contexts based on a start time of action that exists in both
contexts.
2024-05-09 15:31:23 -07:00
Yury Semikhatsky
1a22e06062
chore: only patch callIds when there are multiple trace files ( #30721 )
2024-05-09 09:33:16 -07:00
Yury Semikhatsky
7a0c7730e7
fix(trace-viewer): make call ids unique across trace files ( #30720 )
2024-05-08 17:33:31 -07:00
Rui Figueira
cf3ff6531a
chore: make NodeSnapshot type recursive and more ( #30619 )
...
Also, deviceDescriptors are now imported with ESM import instead of require()
2024-05-08 11:08:40 -07:00
Yury Semikhatsky
0164dca302
chore: extract trace modernizer into its own class ( #30696 )
2024-05-07 11:42:28 -07:00
Dmitry Gozman
ab3df111c9
chore: remove TeleTestCase._resultsMap ( #30567 )
2024-04-26 10:11:01 -07:00
Pavel Feldman
ff3d3ae8f2
fix(ui): print config and global setup errors ( #30531 )
...
Fixes: https://github.com/microsoft/playwright/issues/30513
2024-04-24 18:54:48 -07:00
Yury Semikhatsky
8c181f7e2b
fix: rebuild project tree from scratch when listing tests ( #30407 )
...
Instead of filtering tests assuming there are no two projects with same
name we always rebuild test tree from scratch and restore previos test
results in the list mode.
Fixes https://github.com/microsoft/playwright/issues/30396
2024-04-18 16:49:07 -07:00
Max Schmitt
15b423106f
fix(ui-mode): do not loose run information after writing into testDir ( #30312 )
...
Partially reverts https://github.com/microsoft/playwright/pull/30008
that started to reset all test results upon listing tests, including the
test that did just run and triggered re-listing.
https://github.com/microsoft/playwright/issues/30300 .
2024-04-10 19:01:51 +02:00
Pavel Feldman
8ee286b366
chore: migrate to the testserver.initialize ( #30226 )
2024-04-03 12:50:56 -07:00
Pavel Feldman
7afd4170ea
chore: opt into stdio forwarding ( #30185 )
2024-03-30 18:45:10 -07:00
Max Schmitt
ffffb81c3b
fix: UI Mode tags without theme applied ( #30138 )
...
Trace Viewer theming is override based. By default you should have
something applied - an optional `dark-mode` class might be there too.
2024-03-27 16:46:26 +01:00
Dmitry Gozman
dd1eca2a9d
fix(trace viewer): show correct number of pages without screencast ( #30124 )
...
Exposed by the flaky "should open two trace files" test.
2024-03-26 10:25:12 -07:00
Max Schmitt
599185dd07
feat(ui-mode): show native tags in test tree ( #30092 )
...
This brings up the question that we would show the tag name twice if its
a tag in a title. This would be aligned to how HTML report is doing it.
Fixes https://github.com/microsoft/playwright/issues/29927
---------
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-03-26 01:06:22 +01:00
Pavel Feldman
7039ad0d11
chore: follow up to the api review for test server ( #30097 )
2024-03-25 15:42:58 -07:00
Max Schmitt
253a2f9a9c
chore: address UI Mode keyboard shortcut feedback ( #30088 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-03-25 19:48:20 +01:00
Pavel Feldman
ee9432b9da
chore: send test params over the wire in ui mode ( #30046 )
2024-03-22 13:49:28 -07:00
Pavel Feldman
a9fc4de37e
chore: queue run and list commands from ui ( #30033 )
2024-03-21 14:28:07 -07:00
Pavel Feldman
7ad0a12c23
chore: remove ui mode update globals ( #30031 )
2024-03-20 21:09:49 -07:00
Pavel Feldman
8a1ff34578
chore: split ui mode view into files ( #30029 )
2024-03-20 16:00:35 -07:00
Pavel Feldman
48ccc9cbcd
chore: prepare to reuse test server from ui mode (6) ( #30008 )
2024-03-20 13:43:26 -07:00
Pavel Feldman
0a22a86e2e
chore: prepare to reuse test server from ui mode (5) ( #30005 )
2024-03-19 14:08:21 -07:00
Pavel Feldman
54aca430b0
chore: prepare to reuse test server from ui mode (4) ( #29995 )
2024-03-19 13:00:49 -07:00
jonghoonpark
b929c0d8f7
feat(ui-mode): add key shortcuts for playwright uI test runner ( #29868 )
2024-03-19 12:36:42 +01:00
Max Schmitt
a6d1fb93de
fix(trace-viewer): encode attachment filenames as UTF-8 ( #29993 )
...
Fixes https://github.com/microsoft/playwright/issues/29967
Tested in Firefox, Chromium, and Safari. This now leads to "good
attachment names" in Chromium and Safari, for Firefox, it won't produce
attachments, it will open them inline, but this is not a regression, was
before like that already.
See here for the spec:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#filename_2
---------
Signed-off-by: Max Schmitt <max@schmitt.mx>
2024-03-18 21:26:45 +01:00
Pavel Feldman
ef4438ee99
chore: prepare to reuse test server from ui mode (2) ( #29966 )
2024-03-18 09:59:02 -07:00
Max Schmitt
be465c6a1c
fix(trace-viewer): allow Chrome extension fallback in SW ( #29954 )
...
https://github.com/microsoft/playwright/issues/29144
2024-03-15 16:27:07 +01:00