forked from baron/baron-sso
worksmobile 관리화면 보완.
This commit is contained in:
@@ -57,6 +57,7 @@ test.describe("Tenants Management", () => {
|
||||
});
|
||||
|
||||
test("should list tenants", async ({ page }) => {
|
||||
await page.setViewportSize({ width: 900, height: 700 });
|
||||
const internalTenantId = "c5839444-2de0-4a37-99b0-4f94d3de8bea";
|
||||
|
||||
await page.route("**/api/v1/admin/tenants**", async (route) => {
|
||||
@@ -93,6 +94,15 @@ test.describe("Tenants Management", () => {
|
||||
timeout: 10000,
|
||||
});
|
||||
await expect(page.locator("table")).toContainText(internalTenantId);
|
||||
await expect(page.locator("table")).toContainText("COMPANY");
|
||||
await expect(page.locator("table")).not.toContainText("일반 기업");
|
||||
|
||||
const headerWhiteSpace = await page
|
||||
.locator("table thead th")
|
||||
.evaluateAll((headers) =>
|
||||
headers.map((header) => window.getComputedStyle(header).whiteSpace),
|
||||
);
|
||||
expect(headerWhiteSpace.every((value) => value === "nowrap")).toBe(true);
|
||||
});
|
||||
|
||||
test("should create a new tenant", async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user