Базовый Fake Store: warmup и проверка product-контракта
ЛегкоДашбордыAPI
Задача
Run GET /_api-sandbox/products/1 -> GET /_api-sandbox/products/categories and validate each response before continuing
Успех
- Use Playwright request fixture/context for every API call
- Keep traffic on /_api-sandbox only
- Run strict order: GET /_api-sandbox/products/1 -> GET /_api-sandbox/products/categories
Правила
- No local mocks or off-target HTTP calls
- No reordered flow steps
- No end-only assertions
Мутация
- Order and payload checks are both graded
- Bypassing /_api-sandbox fails grading
Подсказка 1
• Действие: send GET /_api-sandbox/products/1 • Действие: send GET /_api-sandbox/products/categories
Подсказка 2
• Проверка: assert 200 (or another 2xx) response • Проверка: assert payload has numeric id
Подсказка 3
• Проверка: assert payload is a non-empty categories array
