1
0
forked from baron/baron-sso

code check 오류 수정

This commit is contained in:
2026-04-06 14:54:57 +09:00
parent 890ddd9b3c
commit e3d279cb83
4 changed files with 472 additions and 3 deletions

View File

@@ -196,6 +196,22 @@ export async function installDevApiMock(page: Page, state: DevApiMockState) {
});
};
await page.route("**/api/v1/user/me", async (route) => {
return json(route, {
id: "playwright-user",
loginId: "playwright@example.com",
email: "playwright@example.com",
name: "Playwright User",
phoneNumber: "",
department: "QA",
tenantId: "tenant-a",
tenantName: "Tenant A",
role: "rp_admin",
createdAt: "2026-03-03T00:00:00.000Z",
updatedAt: "2026-03-03T00:00:00.000Z",
});
});
await page.route("**/api/v1/dev/**", async (route) => {
const request = route.request();
const url = new URL(request.url());