forked from baron/baron-sso
devfront rp_admin tenant_admin 제거
This commit is contained in:
@@ -29,7 +29,7 @@ test.describe("DevFront tenant switch", () => {
|
||||
id: "playwright-user",
|
||||
email: "playwright@example.com",
|
||||
name: "Playwright User",
|
||||
role: "tenant_admin",
|
||||
role: "user",
|
||||
tenantId: "tenant-a",
|
||||
}),
|
||||
});
|
||||
@@ -40,8 +40,8 @@ test.describe("DevFront tenant switch", () => {
|
||||
});
|
||||
|
||||
test("multiple tenants: user can switch tenant context", async ({ page }) => {
|
||||
// Seed an admin user
|
||||
await seedAuth(page, "tenant_admin");
|
||||
// Seed a standard user
|
||||
await seedAuth(page, "user");
|
||||
|
||||
await installDevApiMock(page, MOCK_STATE);
|
||||
|
||||
@@ -87,7 +87,7 @@ test.describe("DevFront tenant switch", () => {
|
||||
test("single tenant: switcher is disabled with a notice", async ({
|
||||
page,
|
||||
}) => {
|
||||
await seedAuth(page, "tenant_admin");
|
||||
await seedAuth(page, "user");
|
||||
|
||||
// Mock API to return only ONE tenant
|
||||
await page.route("**/api/v1/dev/my-tenants", async (route) => {
|
||||
|
||||
Reference in New Issue
Block a user