1586 Commits

Author SHA1 Message Date
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
Simon Knott
1206ef64e7
chore(html): render locator.fill value (#35457) 2025-04-02 15:40:37 +02:00
Adam Gastineau
92c5d656ab
chore: add location named property to annotations (#35373) 2025-04-02 06:29:22 -07:00
Adam Gastineau
7f2ceda249
Revert "chore: temporarily disable floating promise warning messages (#34957) (#35374) 2025-03-31 07:16:00 -07:00
Mark Skelton
3d603d1e5c
feat(html): add NOT filtering to HTML reporter (#35390) 2025-03-31 14:18:13 +01:00
Chris
fbf519c5a5
feat(html-reporter): Add extra space after any special token (#35365) 2025-03-28 14:47:08 +01:00
Simon Knott
2f3fe8f113
feat(prompt): link to error prompt in terminal (#35341) 2025-03-28 13:42:18 +01:00
Simon Knott
8896454cdf
fix(prompt): take snapshot for unclosed contexts as well (#35387)
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-03-27 16:25:46 +01:00
Simon Knott
febb95a638
chore: highlight "view trace" on failing tests (#35342) 2025-03-26 16:27:48 +01:00
Simon Knott
45fa3d17fc
feat: split up static and dynamic annotations (#35292)
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-03-26 11:33:18 +01:00
Dmitry Gozman
0467c28722
chore: builtins (#35197) 2025-03-25 13:49:28 +00:00
Simon Knott
87bc0f48ef
chore: provide error context to test server (#35339) 2025-03-25 14:07:02 +01:00
Dmitry Gozman
7cada0322a
fix(test runner): disregard native typescript execution in Node.js (#35300) 2025-03-20 19:17:17 +00:00
Max Schmitt
834ccff25f
chore: roll stable-test-runner to 1.51.0-beta-1741803045000 (#35192) 2025-03-13 20:03:30 +01:00
Adam Gastineau
a98075085e
fix(expect): properly handle custom asymmetric matcher regression (#35149) 2025-03-12 09:05:53 -07:00
Jean-François Greffier
85a66912c6
feat(config): failOnFlakyTests option (#35109) 2025-03-11 10:06:20 -07:00
Pavel Feldman
63e5257a4c
chrome: expose link/url in aria (#35134) 2025-03-11 10:04:52 -07:00
Pengoose
43ee924087
feat(webServer): support name option for custom web server log prefixes (#35105) 2025-03-10 19:12:59 -07:00
Dmitry Gozman
4767845f20
feat: support TestProject.workers limit (#35094) 2025-03-10 09:13:24 +00:00
Dmitry Gozman
e01c901e87
fix: do not screenshot the same page again in afterAll (#35079) 2025-03-06 21:06:19 +00:00
Pavel Feldman
319f4630de
chore: do not compute git diff on PRs (#35062) 2025-03-05 20:43:27 -08:00
Pavel Feldman
1423d0f8a7
chore: rename to copy prompt (#35057) 2025-03-05 13:07:52 -08:00
Simon Knott
f44cd3050b
chore(ui): hide top-level attach actions (#35040) 2025-03-05 15:37:25 +01:00
Dmitry Gozman
3773a73855
chore: roll stable test runner to 1.51.0-beta-1741166263000 (#35042) 2025-03-05 13:18:58 +00:00
Pavel Feldman
78fa911756
chore: improve prompt to use code frame and inline error (#35032) 2025-03-04 19:28:03 -08:00
Adam Gastineau
d6a4c1cda4
chore: restore to.have.url matching via injected script (#35027) 2025-03-04 11:52:59 -08:00
Simon Knott
88623ae3c2
refactor: store copy prompt contents in attachment (#34995) 2025-03-04 17:20:36 +01:00
Pavel Feldman
ee2a5264ad
chore: do not show other metadata in html report (#35001) 2025-03-03 15:28:18 -08:00
Pavel Feldman
85c6405093
chore: differentiate test.skip and step.skip (#35002) 2025-03-03 15:27:56 -08:00
Christopher Tangonan
c22c10f7d8
feat(json-reporter): added parallelIndex to TestResult (#34740) 2025-02-28 10:00:51 -08:00
Pavel Feldman
e033e5aa11
chore: move captureGitInfo back into config (#34961) 2025-02-28 07:33:03 -08: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
2573a80893
chore: change recommended snapshot extension to .aria.yml (#34963) 2025-02-28 10:03:39 +01:00
Simon Knott
44712fb8eb
test: windows clipboard contains \r\n (#34966) 2025-02-28 09:37:48 +01:00
Adam Gastineau
67d6f7f603
chore: temporarily disable floating promise warning messages (#34957) 2025-02-27 12:45:30 -08:00
Simon Knott
a1146fd4a3
chore: copy as prompt in ui should have codeframe (#34943)
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-02-27 15:50:46 +01:00
Pavel Feldman
58db3f7e3f
chore: restore pr title in html report (#34937) 2025-02-26 19:22:31 -08:00
Pavel Feldman
cd23a224f6
chore: another iteration on gitCommit/gitDiff props (#34926) 2025-02-26 08:40:30 -08:00
Simon Knott
17c4d8e5ec
chore: change generated filename for toMatchAriaSnapshot from .yml to .snapshot.yml (#34931)
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-02-26 16:29:56 +01:00
Simon Knott
a04a93c1fd
chore: change pageSnapshot extension to .snapshot.yml (#34930) 2025-02-26 14:27:17 +01:00
Yury Semikhatsky
aaac9923fd
fix: disable global timeout when debugging (#34922) 2025-02-25 11:33:15 -08:00