1
0
forked from baron/baron-sso

[vite] http proxy error: /api/v1/admin/tenants?limit=1000&offset=0 해결

This commit is contained in:
2026-02-27 15:04:13 +09:00
parent f6769fa1db
commit e1ebb78331

View File

@@ -27,6 +27,17 @@ test.describe("Tenants Management", () => {
await route.fulfill({ json: { issuer: "http://localhost:5000/oidc" } });
},
);
// Default mock for tenants to avoid proxy leaks
await page.route("**/api/v1/admin/tenants**", async (route) => {
if (route.request().method() === "GET") {
await route.fulfill({
json: { items: [], total: 0, limit: 100, offset: 0 },
});
} else {
await route.continue();
}
});
});
test("should list tenants", async ({ page }) => {