forked from baron/baron-sso
adminfront test 오류 해결
This commit is contained in:
@@ -879,7 +879,7 @@ function TenantListPage() {
|
|||||||
{importMessage ? (
|
{importMessage ? (
|
||||||
<div
|
<div
|
||||||
className="rounded-md border border-border bg-secondary px-3 py-2 text-sm"
|
className="rounded-md border border-border bg-secondary px-3 py-2 text-sm"
|
||||||
data-testid="tenant-import-result"
|
data-testid="tenant-import-summary"
|
||||||
>
|
>
|
||||||
{importMessage}
|
{importMessage}
|
||||||
</div>
|
</div>
|
||||||
@@ -1049,7 +1049,7 @@ function TenantListPage() {
|
|||||||
{importResult && (
|
{importResult && (
|
||||||
<div
|
<div
|
||||||
className="grid grid-cols-4 gap-4 py-4"
|
className="grid grid-cols-4 gap-4 py-4"
|
||||||
data-testid="tenant-import-result"
|
data-testid="tenant-import-report"
|
||||||
>
|
>
|
||||||
<div className="flex flex-col items-center rounded-lg border bg-muted/30 p-3 shadow-sm">
|
<div className="flex flex-col items-center rounded-lg border bg-muted/30 p-3 shadow-sm">
|
||||||
<span className="text-[10px] font-bold tracking-wider text-muted-foreground uppercase">
|
<span className="text-[10px] font-bold tracking-wider text-muted-foreground uppercase">
|
||||||
@@ -1634,7 +1634,7 @@ const TenantHierarchyView: React.FC<{
|
|||||||
count: flattenedRows.length,
|
count: flattenedRows.length,
|
||||||
getScrollElement: () => parentRef.current,
|
getScrollElement: () => parentRef.current,
|
||||||
estimateSize: () => _tenantEstimatedRowHeight,
|
estimateSize: () => _tenantEstimatedRowHeight,
|
||||||
overscan: isTest ? flattenedRows.length : 10,
|
overscan: isTest && flattenedRows.length < 100 ? flattenedRows.length : 10,
|
||||||
initialRect: isTest ? { width: 1180, height: 1000 } : undefined,
|
initialRect: isTest ? { width: 1180, height: 1000 } : undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1897,7 +1897,7 @@ const TenantHierarchyView: React.FC<{
|
|||||||
<TableBody className="relative">
|
<TableBody className="relative">
|
||||||
{rowVirtualizer.getTotalSize() > 0 &&
|
{rowVirtualizer.getTotalSize() > 0 &&
|
||||||
virtualRows.length > 0 &&
|
virtualRows.length > 0 &&
|
||||||
!isTest && (
|
!(isTest && flattenedRows.length < 100) && (
|
||||||
<tr style={{ height: `${virtualRows[0].start}px` }}>
|
<tr style={{ height: `${virtualRows[0].start}px` }}>
|
||||||
<td colSpan={8} />
|
<td colSpan={8} />
|
||||||
</tr>
|
</tr>
|
||||||
@@ -1917,7 +1917,7 @@ const TenantHierarchyView: React.FC<{
|
|||||||
</TableRow>
|
</TableRow>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isTest
|
{isTest && flattenedRows.length < 100
|
||||||
? flattenedRows.map((row, index) => renderRow(row, index))
|
? flattenedRows.map((row, index) => renderRow(row, index))
|
||||||
: virtualRows.map((virtualRow) =>
|
: virtualRows.map((virtualRow) =>
|
||||||
renderRow(
|
renderRow(
|
||||||
@@ -1929,7 +1929,7 @@ const TenantHierarchyView: React.FC<{
|
|||||||
|
|
||||||
{rowVirtualizer.getTotalSize() > 0 &&
|
{rowVirtualizer.getTotalSize() > 0 &&
|
||||||
virtualRows.length > 0 &&
|
virtualRows.length > 0 &&
|
||||||
!isTest && (
|
!(isTest && flattenedRows.length < 100) && (
|
||||||
<tr
|
<tr
|
||||||
style={{
|
style={{
|
||||||
height: `${rowVirtualizer.getTotalSize() - virtualRows[virtualRows.length - 1].end}px`,
|
height: `${rowVirtualizer.getTotalSize() - virtualRows[virtualRows.length - 1].end}px`,
|
||||||
|
|||||||
@@ -1028,7 +1028,7 @@ test.describe("Tenants Management", () => {
|
|||||||
(button as HTMLButtonElement).click();
|
(button as HTMLButtonElement).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
await expect(page.getByTestId("tenant-import-result")).toContainText(
|
await expect(page.getByTestId("tenant-import-summary")).toContainText(
|
||||||
/생성 2|Created 2/i,
|
/생성 2|Created 2/i,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ test.describe("Tenants CSV live E2E", () => {
|
|||||||
await expect(page.getByRole("dialog")).toContainText("CSV 가져오기 확인");
|
await expect(page.getByRole("dialog")).toContainText("CSV 가져오기 확인");
|
||||||
await page.getByTestId("tenant-import-confirm-btn").click();
|
await page.getByTestId("tenant-import-confirm-btn").click();
|
||||||
|
|
||||||
await expect(page.getByTestId("tenant-import-result")).toContainText(
|
await expect(page.getByTestId("tenant-import-summary")).toContainText(
|
||||||
/생성 1|Created 1/i,
|
/생성 1|Created 1/i,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user