1
0
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:
2026-06-02 19:23:11 +09:00
parent 1f3d56933f
commit 74068503bb
4 changed files with 28 additions and 8 deletions

View File

@@ -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", {