fix(tests): update cancel endpoint mock to match DELETE requests with session UUID

This commit is contained in:
GitHub Actions
2026-03-02 22:09:39 +00:00
parent 49bfbf3f76
commit 28be62dee0
3 changed files with 195 additions and 5 deletions

View File

@@ -160,8 +160,8 @@ async function setupImportMocks(
}
});
// Mock cancel endpoint
await page.route('**/api/v1/import/cancel', async (route) => {
// Mock cancel endpoint — pattern ends with * to match DELETE ?session_uuid=... query param
await page.route('**/api/v1/import/cancel*', async (route) => {
hasSession = false;
await route.fulfill({ status: 204 });
});