forked from baron/baron-sso
75f192fb24 기준 병합 code-check 수정
This commit is contained in:
@@ -37,7 +37,9 @@ test("clients page loads correctly", async ({ page }) => {
|
||||
|
||||
// 페이지 내 주요 텍스트 확인
|
||||
await expect(page.getByText("연동 앱 목록")).toBeVisible();
|
||||
await expect(page.getByText("Total Applications", { exact: true })).toHaveCount(0);
|
||||
await expect(
|
||||
page.getByText("Total Applications", { exact: true }),
|
||||
).toHaveCount(0);
|
||||
|
||||
// 테이블 헤더 확인
|
||||
await expect(
|
||||
@@ -108,9 +110,7 @@ test("clients page shows only five apps by default and expands with more button"
|
||||
const clients = Array.from({ length: 6 }, (_, index) =>
|
||||
makeClient(`client-${index + 1}`, {
|
||||
name: `Preview App ${index + 1}`,
|
||||
createdAt: new Date(
|
||||
Date.UTC(2026, 2, 3, 9, 10 - index, 0),
|
||||
).toISOString(),
|
||||
createdAt: new Date(Date.UTC(2026, 2, 3, 9, 10 - index, 0)).toISOString(),
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -126,9 +126,13 @@ test("clients page shows only five apps by default and expands with more button"
|
||||
page.getByRole("heading", { name: "연동 앱 목록" }),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.locator("table").first().locator("tbody tr").filter({
|
||||
hasText: /Preview App \d/,
|
||||
}),
|
||||
page
|
||||
.locator("table")
|
||||
.first()
|
||||
.locator("tbody tr")
|
||||
.filter({
|
||||
hasText: /Preview App \d/,
|
||||
}),
|
||||
).toHaveCount(5);
|
||||
await expect(
|
||||
page.getByText("Preview App 6", { exact: true }),
|
||||
@@ -142,13 +146,15 @@ test("clients page shows only five apps by default and expands with more button"
|
||||
await moreButton.click();
|
||||
|
||||
await expect(
|
||||
page.locator("table").first().locator("tbody tr").filter({
|
||||
hasText: /Preview App \d/,
|
||||
}),
|
||||
page
|
||||
.locator("table")
|
||||
.first()
|
||||
.locator("tbody tr")
|
||||
.filter({
|
||||
hasText: /Preview App \d/,
|
||||
}),
|
||||
).toHaveCount(6);
|
||||
await expect(
|
||||
page.getByText("Preview App 6", { exact: true }),
|
||||
).toBeVisible();
|
||||
await expect(page.getByText("Preview App 6", { exact: true })).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("button", { name: "연동 앱 목록 더보기" }),
|
||||
).toHaveCount(0);
|
||||
@@ -205,15 +211,13 @@ test("overview page shows user-delete relation cleanup in recent changes", async
|
||||
).toBeVisible();
|
||||
await expect(page.getByText("관계 삭제", { exact: true })).toBeVisible();
|
||||
await expect(page.getByText(/관계:\s*config_editor/)).toBeVisible();
|
||||
await expect(page.getByText(/대상:\s*User:deleted-user/)).toBeVisible();
|
||||
await expect(page.getByText(/주체:\s*User:deleted-user/)).toBeVisible();
|
||||
await expect(
|
||||
page.getByText("cleanup-actor", { exact: true }).first(),
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
test("clients page no longer shows recent changes card", async ({
|
||||
page,
|
||||
}) => {
|
||||
test("clients page no longer shows recent changes card", async ({ page }) => {
|
||||
await seedAuth(page, "super_admin");
|
||||
const clients = Array.from({ length: 6 }, (_, index) =>
|
||||
makeClient(`client-${index + 1}`, {
|
||||
|
||||
Reference in New Issue
Block a user