forked from baron/baron-sso
test: update adminfront e2e tests for new organization UI
This commit is contained in:
@@ -175,27 +175,17 @@ test.describe("Tenants Management", () => {
|
||||
});
|
||||
|
||||
await page.goto("/tenants/parent-1/organization");
|
||||
await expect(page.locator("table")).toContainText("Parent Org", {
|
||||
timeout: 20000,
|
||||
});
|
||||
|
||||
const parentRow = page
|
||||
.locator("tr")
|
||||
.filter({ hasText: "Parent Org" })
|
||||
.first();
|
||||
await expect(parentRow).toContainText("5");
|
||||
|
||||
const memberButton = parentRow
|
||||
.getByRole("button")
|
||||
.filter({ hasText: /Direct|소속|직속/ })
|
||||
.first();
|
||||
await memberButton.click();
|
||||
|
||||
await expect(
|
||||
page
|
||||
.locator('button[role="tab"]')
|
||||
.filter({ hasText: /소속 멤버|Direct Members/i })
|
||||
.first(),
|
||||
page.locator(".font-bold, h2").filter({ hasText: "Parent Org" }).first()
|
||||
).toBeVisible({ timeout: 20000 });
|
||||
|
||||
await expect(
|
||||
page.locator(".grid .font-bold, .grid .text-sm").filter({ hasText: "Child Team" }).first()
|
||||
).toBeVisible();
|
||||
|
||||
await expect(
|
||||
page.locator("h3").filter({ hasText: /소속 멤버|Members/i }).first()
|
||||
).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user