Fix pets API mock route in clients E2E test
The pets endpoint is /api/pets?clientId=... not /api/clients/*/pets. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
committed by
Groom Book CTO
parent
a045749673
commit
6e087cc16b
@@ -34,7 +34,7 @@ test.beforeEach(async ({ page }) => {
|
|||||||
route.fulfill({ json: MOCK_CLIENTS })
|
route.fulfill({ json: MOCK_CLIENTS })
|
||||||
);
|
);
|
||||||
// Pets loaded when a client is selected
|
// Pets loaded when a client is selected
|
||||||
await page.route("/api/clients/*/pets", (route) =>
|
await page.route("/api/pets**", (route) =>
|
||||||
route.fulfill({ json: [] })
|
route.fulfill({ json: [] })
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user