Sequence Fake Store: строгий порядок proxy-шагов
Ср.CheckoutAPI
Задача
Run GET /_api-sandbox/products/categories -> GET /_api-sandbox/products/1 -> GET /_api-sandbox/users/1 -> POST /_api-sandbox/auth/login and validate each step
Успех
- Use Playwright request fixture/context for every API call
- Keep traffic on /_api-sandbox only
- Run strict order: GET /_api-sandbox/products/categories -> GET /_api-sandbox/products/1 -> GET /_api-sandbox/users/1 -> POST /_api-sandbox/auth/login
Правила
- No local mocks or off-target HTTP calls
- No reordered flow steps
- No end-only assertions
Мутация
- Order is part of the contract
- Payload and login semantics are graded together
Подсказка 1
• Действие: send GET /_api-sandbox/products/categories • Действие: send GET /_api-sandbox/products/1 • Действие: send GET /_api-sandbox/users/1 • Действие: send POST /_api-sandbox/auth/login
Подсказка 2
• Проверка: assert 200 (or another 2xx) response • Проверка: assert payload is a non-empty categories array • Проверка: assert payload has numeric id
Подсказка 3
• Проверка: assert payload contains id and username • Проверка: assert status 401 • Проверка: assert body contains "incorrect"
