Objective
What to automate
Fulfil the catalogue request with an empty data array and assert the empty state.
Preconditions and test data
Preconditions
- Use a fresh isolated Practice Lab browser context.
- Open the fixture identified by FX-STORE-001.
Test data
response: { data: [], meta: { total: 0 } }
Expected result
No product cards render and the explicit no-products state is visible.
Progressive hints
Hint 1
Install page.route before navigation.
Hint 2
Match only the store catalogue endpoint.
Hint 3
Return valid JSON with an empty data array and total zero.
I’ve tried it — show solution
- Install page.route before navigation.
- Match only the store catalogue endpoint.
- Return valid JSON with an empty data array and total zero.