Assert an outgoing request body
Medium70 pts~25 min
- Gear Shop
Practice app · Gear Shop
A product grid loaded from a real API with search, filters, infinite scroll and a checkout that calls a payments API.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Assert an outgoing request body. Practise it against the Gear Shop practice application (A product grid loaded from a real API with search, filters, infinite scroll and a checkout that calls a payments API.).
Your task
- 1Open the practice application at the test URL shown above and wait for it to finish loading.
- 2Inspect the page to find the elements you need — key elements include
#search-box,#category-filter,#sort-select. - 3Write and run a test that demonstrates: assert an outgoing request body.
- 4Finish with at least one assertion on a user-visible outcome, not an internal detail.
Acceptance criteria
- The test runs to completion without errors.
- The test contains at least one passing assertion on a user-visible outcome.
Playwright · Playwright · Network & mocking