feat: add UI/visual testing to pipeline
All checks were successful
CI / lint (push) Successful in 4s
CI / test (push) Successful in 5s
CI / build (push) Successful in 2s
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 4s
CI / build (pull_request) Successful in 1s

This commit is contained in:
2026-05-23 01:58:14 +03:00
parent 9eaeb36105
commit b09907e683
4 changed files with 181 additions and 10 deletions

View File

@@ -0,0 +1,41 @@
# UI Test Cases: <Work Item ID> — <Title>
> Шаблон для аналитика. Скопируй и заполни для своего work item.
> Runner: node /home/slin/tools/ui-test/run_tests.js <этот-файл> /tmp/screenshots/
> Docs: docs/architecture/ui-testing.md
---
### TC-UI-01 — <Название сценария>
**Тип:** ui
**Viewport:** desktop
**URL:** https://openclaw.mva154.duckdns.org/enduro/
**Шаги:**
1. navigate: https://openclaw.mva154.duckdns.org/enduro/
2. wait: 4000
3. screenshot: "initial-state"
4. click: "#<element-id>"
5. wait: 1000
6. check-visual: "<что должно быть видно>"
**Визуальные критерии:**
- <критерий 1>
- <критерий 2>
---
### TC-UI-02 — Mobile layout
**Тип:** ui
**Viewport:** both
**URL:** https://openclaw.mva154.duckdns.org/enduro/
**Шаги:**
1. navigate: https://openclaw.mva154.duckdns.org/enduro/
2. wait: 4000
3. check-visual: "mobile and desktop layout"
**Визуальные критерии:**
- Нет горизонтального скролла
- Все кнопки toolbar видны
- Карта занимает весь экран