docs(web-test): sync API docs with actual implementation

- recording.md: add speech param to showCaption parameter table
- web-test-guide.md: add showImage, hideImage, addNarration, getCaptions
  to utilities table; add speech to showCaption/showTitleSlide descriptions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-18 20:04:58 +03:00
parent c280e52932
commit bef4a13ba9
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -88,6 +88,7 @@ Display a text overlay on the page (visible in recording). Calling again updates
| `opts.fontSize` | number | 24 | Font size in px |
| `opts.background` | string | `'rgba(0,0,0,0.7)'` | Background color |
| `opts.color` | string | `'#fff'` | Text color |
| `opts.speech` | string \| false | - | TTS narration text. Omit = use displayed text, string = custom narration, false = skip narration |
The overlay uses `pointer-events: none` — does not interfere with clicking.