mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 09:30:59 +03:00
docs(web-test): fix caption timing pattern in recording example
Show caption before action with wait() pause, not after. Viewer reads what will happen, then sees it happen. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
bb07bfae14
commit
9318d05535
@@ -122,28 +122,32 @@ await showTitleSlide('Создание заказа клиента', { subtitle:
|
|||||||
await wait(4);
|
await wait(4);
|
||||||
await hideTitleSlide();
|
await hideTitleSlide();
|
||||||
|
|
||||||
// Steps with captions
|
// Steps: caption → pause → action
|
||||||
await showCaption('Шаг 1. Переходим в раздел «Продажи»');
|
await showCaption('Шаг 1. Переходим в раздел «Продажи»');
|
||||||
|
await wait(1.5);
|
||||||
await navigateSection('Продажи');
|
await navigateSection('Продажи');
|
||||||
await wait(1);
|
|
||||||
|
|
||||||
await showCaption('Шаг 2. Открываем заказы клиентов');
|
await showCaption('Шаг 2. Открываем заказы клиентов');
|
||||||
|
await wait(1.5);
|
||||||
await openCommand('Заказы клиентов');
|
await openCommand('Заказы клиентов');
|
||||||
await wait(1);
|
|
||||||
|
|
||||||
await showCaption('Шаг 3. Создаём новый заказ');
|
await showCaption('Шаг 3. Создаём новый заказ');
|
||||||
|
await wait(1.5);
|
||||||
await clickElement('Создать');
|
await clickElement('Создать');
|
||||||
await wait(2);
|
await wait(2); // wait for form to load
|
||||||
|
|
||||||
await showCaption('Шаг 4. Заполняем шапку');
|
await showCaption('Шаг 4. Заполняем шапку');
|
||||||
|
await wait(1.5);
|
||||||
await fillFields({ 'Организация': 'Конфетпром', 'Контрагент': 'Альфа' });
|
await fillFields({ 'Организация': 'Конфетпром', 'Контрагент': 'Альфа' });
|
||||||
await wait(2);
|
await wait(1);
|
||||||
|
|
||||||
await hideCaption();
|
await hideCaption();
|
||||||
const result = await stopRecording();
|
const result = await stopRecording();
|
||||||
console.log(`Recorded ${result.duration}s, ${(result.size / 1024 / 1024).toFixed(1)} MB`);
|
console.log(`Recorded ${result.duration}s, ${(result.size / 1024 / 1024).toFixed(1)} MB`);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Caption timing**: show the caption *before* the action with a `wait(1.5)` pause — the viewer reads what will happen, then sees it happen. Add `wait()` *after* the action only when the next step needs the result to load (e.g., form opening).
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
| Problem | Solution |
|
| Problem | Solution |
|
||||||
|
|||||||
Reference in New Issue
Block a user