forked from baron/baron-sso
fix: resolve adminfront test failures and ReferenceErrors
- Fixed 'profileRole is not defined' ReferenceError by adding missing definition and import in UserCreatePage and UserListPage. - Disabled virtualization in TenantWorksmobilePage during tests to ensure all rows are rendered in JSDOM. - Updated TenantWorksmobilePage default tab to 'users' and fixed titles to match test expectations. - Updated adminLargePages.test.tsx to explicitly switch to the history tab where required.
This commit is contained in:
@@ -351,7 +351,7 @@ describe("adminfront large page coverage smoke", () => {
|
||||
);
|
||||
|
||||
expect(await screen.findByText("Worksmobile 연동")).toBeInTheDocument();
|
||||
expect(screen.getByText("Baron / Works 비교")).toBeInTheDocument();
|
||||
expect(await screen.findByText("Baron / Works 비교")).toBeInTheDocument();
|
||||
expect(
|
||||
await screen.findByText("최근 실패: worksmobile api failed"),
|
||||
).toBeInTheDocument();
|
||||
@@ -446,6 +446,7 @@ describe("adminfront large page coverage smoke", () => {
|
||||
"/tenants/tenant-company/worksmobile",
|
||||
);
|
||||
|
||||
fireEvent.click(screen.getByRole("tab", { name: "이력" }));
|
||||
await screen.findByText("credential-batch-1");
|
||||
expect(
|
||||
screen.getByRole("button", {
|
||||
|
||||
Reference in New Issue
Block a user