1626 Commits

Author SHA1 Message Date
Dmitry Gozman
a0eb891880
chore: ensure progress runs with a timeout in fetch() (#36192) 2025-06-05 16:43:53 +01:00
Max Schmitt
b25cb7f3d1
chore: use 'Clear' step name for locator.clear() (#36208) 2025-06-05 13:23:11 +01:00
Dmitry Gozman
a0479cb24b
fix(test runner): prevent esm loader deadlock (#36187) 2025-06-04 13:25:43 +01:00
Yury Semikhatsky
0a533807dc
chore: delete playwright-dashboard package (#36182) 2025-06-03 13:52:26 -07:00
Dmitry Gozman
818b7d6832
Revert "fix(esm): prevent ESM loading deadlock in certain import chains (#35933)" (#36179) 2025-06-03 19:20:18 +01:00
Pavel Feldman
c9d329155d
chore: remove Step prefix from trace and reports (#36149) 2025-06-02 13:40:22 -07:00
Simon Knott
43a086a8de
chore: render error context to copy prompt (#36123) 2025-05-30 15:43:55 +02:00
Noritaka Kobayashi
f4d655adcc
chore: fix typos (#36091) 2025-05-29 11:17:13 -07:00
Simon Knott
4cb2431c33
chore: trim error context and make it singular (#36117) 2025-05-28 15:10:24 +02:00
Simon Knott
d1df5893bc
chore: remove error context JSON format (#36116) 2025-05-28 12:47:34 +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
Pavel Feldman
313de29fab
feat(locator): introduce locator.describe() (#35969) 2025-05-16 13:40:47 -07:00
Dmitry Gozman
8eda25c928
fix(test runner): do not install custom loader hook for '.cjs' (#35962) 2025-05-15 19:54:31 +01:00
Dmitry Gozman
7f9be44e3c
test: add a test for import regression (#35952) 2025-05-14 19:48:46 +01:00
Adam Gastineau
e4f0d9503b
fix(esm): prevent ESM loading deadlock in certain import chains (#35933) 2025-05-14 08:30:26 -07:00
Adam Gastineau
854534cdfe
fix(trace): avoid recording BindingCall actions (#35851) 2025-05-13 05:28:14 -07:00
Yury Semikhatsky
1d181ae608
devops: get rid of fd-slicer dependency and esbuild plugin hack (#35895) 2025-05-08 11:48:18 -07:00
Dmitry Gozman
2c2da8a0aa
chore: consolidate snapshot path logic into TestInfo (#35752) 2025-05-05 16:59:37 +01:00
Adam Gastineau
85a101b780
fix(runner): incorporate set project worker count into status messages (#35717) 2025-04-30 08:05:28 -07:00
Adam Gastineau
9b59a6aea6
feat(html): allow setting a title to display (#35659) 2025-04-28 10:30:25 -07:00
Dmitry Gozman
508b1ccdcb
feat: introduce kind option in TestInfo.snapshotPath() (#35734) 2025-04-24 21:21:57 +01:00
Dmitry Gozman
79fd15b530
fix(test runner): TestInfo.snapshotPath() should sanitize (#35709) 2025-04-24 10:36:38 +01:00
Max Schmitt
400f466957
test: unflake 'Copy Prompt' tests (#35714) 2025-04-23 19:27:38 +02:00
Dmitry Gozman
69ffff95e0
test: unflake "should format JSON request body" (#35708) 2025-04-23 14:56:15 +01:00
Max Schmitt
c454681d05
fix(reporters): error context exception with page.evaluate (#35670) 2025-04-23 08:55:38 +02:00
Simon Knott
2e11d4c452
chore: remove fix-with-ai experiment (#35690) 2025-04-22 13:24:30 +02:00
Max Schmitt
5ceb61c497
chore: roll stable-test-runner to 1.52.0-beta-1744901303000.tgz (#35654) 2025-04-17 17:43:17 +02:00
Simon Knott
36a628d902
fix: expect.poll type with custom matcher (#35651) 2025-04-17 16:11:06 +02:00
Adam Gastineau
53abf161b0
chore: completely remove annotation warnings code (#35637) 2025-04-17 05:19:14 -07:00
Adam Gastineau
039e87f5cb
fix(blob): properly communicate attachments through blob merges (#35517) 2025-04-16 13:03:45 -07:00
Adam Gastineau
09529e9275
Revert "chore: add location named property to annotations (#35373)" (#35620) 2025-04-15 11:17:21 -07:00
Simon Knott
cb2d94e467
chore: refactor error context (#35613) 2025-04-15 17:29:07 +02:00
Adam Gastineau
78600c60f8
chore: temporarily disable floating promise warning messages v2 (#35603) 2025-04-15 07:28:55 -07:00
Simon Knott
76ee48dc9d
chore: followup on static annotations (#35579)
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-04-15 09:07:42 +02:00
Marcin Szafranek
b32a9a05e2
docs(test-assertions): optimize custom matcher to handle negative assertions efficiently (#35599) 2025-04-14 12:07:01 -07:00
Yury Semikhatsky
adfad84bb8
fix: do not pass unsafe matcherResult over IPC (#35565) 2025-04-10 14:39:33 -07:00
Dmitry Gozman
51a7b8f27f
test: unflake some network-tab related tests (#35574) 2025-04-10 15:18:34 +01:00
Simon Knott
eed11cabb4
chore: improve view trace button (#35528) 2025-04-10 14:07:00 +02:00
Simon Knott
f31e05bd07
chore(html): open path attachments in new tab (#35508) 2025-04-10 11:47:22 +02:00
Adam Gastineau
8beaf3c383
feat: display warnings only on test failure (#35464) 2025-04-08 07:34:12 -07:00
Adam Gastineau
26b9441d86
fix(uimode): show trace failure and any error messages on missing trace (#35344) 2025-04-03 11:13:19 -07:00
Simon Knott
bc0d2c57e5
fix(html): falsy description shouldnt crash (#35470) 2025-04-03 11:44:22 +02:00
Yury Semikhatsky
19d0d54e66
chore: move markdown reporter to playwright-dashboard (#35465) 2025-04-02 17:26:33 -07:00
Yury Semikhatsky
6c5f3bbe39
chore: show snapshot for test.step (#35445)
We don't take before/after snapshot for `test.step`. To approximate the snapshots we could take either snapshots from the nested actions or from the outer ones. The current logic is the following:

**beforeSnapshot:**
- `beforeSnapshot` is always taken from the last finished action before the step. It also works nice for the actions without nested actions, such as simple `expect(1).toBe(1);`

**afterSnapshot:**
- We always use `afterSnapshot` from a "nested" action, if there is one. It is exactly what we want for `test.step` and it is acceptable for other actions.
- If there are no "nested" actions, use the `beforeSnapshot` 
  -  works best for simple `expect(a).toBe(b);` case
  - `test.step` without children with snapshot is likely a step with a bunch of `expect(a).toBe(b);` and the same logic as for single expect applies.

Fixes https://github.com/microsoft/playwright/issues/35285
2025-04-02 13:22:16 -07:00