Commit 4f88ad3
committed
playwright: attach helpful screenshots on errors
Whenever an operation fails, it is nice to see what the current browser
windows looked like. It really helps to diagnose failures better.
The actual code is inspired by the comments at
https://stackoverflow.com/questions/78020451/how-to-take-screenshot-on-failure
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 3b26ef6 commit 4f88ad3
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
8 | 25 | | |
9 | 26 | | |
10 | 27 | | |
| |||
0 commit comments