Commit f7cabb6
committed
(docs): saveScreenshot requires afterTest hook to be async
When requesting a screenshot in the `afterTest` hook, I would sometime
not have any screenshot generated. I eventually found
`browser.saveScreenshot` is an async function and the hook has to be
explicitly defined `async`:
#5545 (comment)
Add an example to the `browser.saveScreenshot` documentation showing how
to use it in the `afterTest` hook.
Signed-off-by: Antoine Musso <amusso@wikimedia.org>1 parent 37ad290 commit f7cabb6
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
0 commit comments