Dmitry Gozman
a708b65512
feat: per-assertion snapshot path template in config
...
Introduces the following properties in the config that take
precedence over `config.snapshotPathTemplate`.
```ts
export default {
expect: {
toHaveScreenshot: {
pathTemplate: '__screenshots__{/projectName}/{testFilePath}/{arg}{ext}',
},
toMatchAriaSnapshot: {
pathTemplate: '__snapshots__/{testFilePath}/{arg}{ext}',
},
},
};
```
Additionally, changes the default template for aria snapshots to:
```
{snapshotDir}/{testFileDir}/{testFileName}-snapshots/{arg}{ext}
```
This is technically a breaking change.
2025-01-29 14:43:42 +00:00
Vitaliy Potapov
61d595ae48
feat: add new config prop populateGitInfo ( #34329 )
...
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2025-01-28 07:54:31 +00:00
ReaZzy
eaaef29dbd
fix: add validations to --shard cli parameter ( #34463 ) ( #34479 )
2025-01-27 14:31:14 -08:00
Pavel Feldman
245f4b5b86
fix: allow changed to be passed in config ( #34473 )
2025-01-24 15:42:58 -08:00
Adam Gastineau
f65dc0cee4
feat: toHaveURL predicate matcher ( #34413 )
2025-01-24 06:00:17 -08:00
Dmitry Gozman
ab3b4b8cd0
fix(test runner): respect updateSourceMethod from the config ( #34442 )
2025-01-23 12:11:26 +00:00
Adam Gastineau
a06600aee9
chore: roll stable-test-runner to: 1.50.0-beta-1737557690000 ( #34433 )
2025-01-22 12:46:25 -08:00
Dmitry Gozman
cf90c0f122
fix(aria snapshot): make rebase work when options are specified ( #34409 )
2025-01-22 07:53:53 +00:00
Dmitry Gozman
888feb06be
fix(list reporter): do not break after output without trailing eol ( #34410 )
2025-01-21 18:30:09 +00:00
Dmitry Gozman
333e994e7d
fix(step.skip): show a skipped indicator in UI mode ( #34407 )
2025-01-21 18:28:41 +00:00
Simon Knott
99fb188cb4
chore: move attachment link back to tree item, make it flash yellow ( #34353 )
2025-01-20 09:06:01 +01:00
Yury Semikhatsky
372d4196d7
chore: step timeout improvements ( #34386 )
2025-01-17 21:15:47 -08:00
Pavel Feldman
9970446f51
chore: remove toMatchAriaSnapshot.path ( #34379 )
2025-01-17 14:35:15 -08:00
Pavel Feldman
b339d457e3
chore: dogfood jest-style aria snapshots ( #34365 )
2025-01-17 10:17:26 -08:00
Dmitry Gozman
be6caed8df
chore: remove expectZone ( #34312 )
2025-01-16 18:53:32 +00:00
Yury Semikhatsky
275f334b58
chore(step): remove step.fail and step.fixme, add step.skip ( #34326 )
2025-01-14 17:43:47 -08:00
Simon Knott
a33659f2a8
chore: move attachments link to step body ( #34196 )
2025-01-13 10:07:54 +01:00
Dmitry Gozman
f0a3a15e93
chore: explicitly reset apiZone instead of everything ( #34265 )
2025-01-10 20:15:05 +00:00
Adam Gastineau
a2e2dfd446
feat: Enable snapshots for most remaining public commands ( #34072 )
2025-01-10 05:04:44 -08:00
Pavel Feldman
4e8c83055f
chore: split output clients by capabilities and base dir ( #34135 )
2025-01-06 11:03:35 -08:00
Simon Knott
6bdd2694ee
feat(webserver): customize shutdown with new gracefulShutdown option ( #34130 )
...
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-01-03 11:34:34 +01:00
Simon Knott
04a3574f80
feat(reporter): report TestStep#attachments ( #34037 )
2025-01-02 17:48:59 +01:00
Dmitry Gozman
cd32d1b08c
fix(test runner): apply --last-failed after sharding ( #34166 )
2024-12-30 18:45:49 +00:00
Adam Gastineau
875436855e
chore(lint): Ensure EOL newlines ( #34117 )
2024-12-20 09:17:09 -08:00
Simon Knott
67bc484d8b
chore(ui): test that UI works behind proxy, take 2 ( #33771 )
2024-12-18 12:39:08 +01:00
Simon Knott
443b2a2bbc
fix: don't rely on requestAnimationFrame ( #34065 )
2024-12-18 11:41:48 +01:00
Yury Semikhatsky
7ed60ccf7f
feat(test): step.fail and step.fixme modifiers ( #34042 )
2024-12-17 11:17:22 -08:00
Yury Semikhatsky
76bb01d77c
chore: rephrase suggestion for slow test files ( #34012 )
2024-12-16 13:35:19 -08:00
Simon Knott
512cb36c9b
feat(html): link from attachment step to attachment ( #33267 )
2024-12-16 15:25:32 +01:00
Dmitry Gozman
aa1fe61cc9
fix(list reporter): do not print step location instead of test location ( #34022 )
2024-12-16 10:15:52 +00:00
Max Schmitt
91d4b82dfb
fix(pwt): custom fixture titles in UI Mode / HTML Reporter ( #34009 )
2024-12-13 12:31:38 -08:00
Dmitry Gozman
258881bea1
test: fix should not transform external for newer Node versions ( #34006 )
2024-12-13 17:17:49 +00:00
Simon Knott
dd36de7809
fix(html): encode all stdio attachments ( #33950 )
2024-12-13 12:01:20 +01:00
Pavel Feldman
a25bda6950
chore: allow storing aria snapshots in files ( #33919 )
2024-12-10 11:45:16 -08:00
Dmitry Gozman
0937d2f7b9
fix(types): update types for test.extend ( #33784 )
2024-12-09 08:59:01 -08:00
Simon Knott
4fb6c4ed4c
fix(trace): in indexTree check isVisible before adding to result ( #33797 )
2024-11-28 14:04:34 +01:00
Pavel Feldman
35dd3dd104
chore: use diff for snapshot delta ( #33739 )
2024-11-23 11:39:04 -08:00
Pavel Feldman
971b5da741
chore: introduce update-source-method ( #33738 )
2024-11-22 18:30:35 -08:00
Pavel Feldman
66d9f3acbe
chore: introduce update-snapshots=changed ( #33735 )
2024-11-22 17:41:31 -08:00
Pavel Feldman
e0f0996bbd
chore: climb file tree to git root for patches ( #33722 )
2024-11-21 17:32:07 -08:00
Simon Knott
f1ddd379f3
fix(html): don't conflate file names ( #33600 )
2024-11-20 10:16:33 +01:00
Dmitry Gozman
50c8fbf750
fix(ui mode): do not render anonymous describe ( #33675 )
2024-11-20 00:51:31 -08:00
Simon Knott
5e8b469c1c
fix(test): hide response.* calls from reports ( #33620 )
2024-11-18 13:59:40 +01:00
Max Schmitt
d7d8ab62a2
chore: roll stable-test-runner to 1.49.0-beta-1731772650000 ( #33648 )
2024-11-18 10:21:48 +01:00
Rui Figueira
82c77a5e9e
fix(ui-mode): prevent websocket connection leaks on reload ( #33643 )
2024-11-18 01:03:21 -08:00
Dmitry Gozman
77dee44984
fix(rebase): do not apply multiple rebaselines to the same assertion ( #33629 )
2024-11-15 09:08:31 -08:00
Dmitry Gozman
eaf3536014
fix(trace): afterAll hook should not break tracing with reused context ( #33616 )
2024-11-14 13:24:02 -08:00
Yury Semikhatsky
5203c780ae
feat: step timeout option ( #33560 )
2024-11-13 11:17:54 -08:00
Max Schmitt
eab6447ad9
test: add 'should show errors with causes in the error tab' ( #33577 )
2024-11-13 17:32:32 +01:00
Pavel Feldman
d685763c49
chore: use diff instead of diffmatchpatch ( #33550 )
2024-11-12 14:46:29 -08:00