Skip to main content

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"

0 Online

Code

Auto
Saved
Ln 1, Col 1
You need to log in / sign up to run or submit

API sandbox console

Docs quick reference
Run guide

Run your test to unlock captured requests and checks.

Appears after first run · Appears after evaluation

Expected flow
Step inspector
GET /_api-sandbox/products/categoriesPending
Contract expectation
Product contractverify 200 with a non-empty categories array
Last capture
No requests captured yet
Grader checks
  • Use Playwright request fixture/context
  • Stay on /_api-sandbox/* paths
  • Preserve the required request order
  • Assert immediately after each call
Captured: 0Matched: 0/4Issues: 0No run yet