Fake Store Sequence Breaks When Ordered Proxy Steps Drift
Med.CheckoutAPI
Task
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
Success
- 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
Rules
- No local mocks or off-target HTTP calls
- No reordered flow steps
- No end-only assertions
Mutation
- Order is part of the contract
- Payload and login semantics are graded together
Hint 1
• Action: send GET /_api-sandbox/products/categories • Action: send GET /_api-sandbox/products/1 • Action: send GET /_api-sandbox/users/1 • Action: send POST /_api-sandbox/auth/login
Hint 2
• Assertion: assert 200 (or another 2xx) response • Assertion: assert payload is a non-empty categories array • Assertion: assert payload has numeric id
Hint 3
• Assertion: assert payload contains id and username • Assertion: assert status 401 • Assertion: assert body contains "incorrect"
