From 62f00e116a67b1f2894cc8b99ae0697fba4191d0 Mon Sep 17 00:00:00 2001 From: Yauheni Osipau Date: Mon, 14 Sep 2026 10:25:59 +0300 Subject: [PATCH 1/2] fix: added correct folder name --- apps/ai-dial-admin/src/components/Common/FilePath/FilePath.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-dial-admin/src/components/Common/FilePath/FilePath.tsx b/apps/ai-dial-admin/src/components/Common/FilePath/FilePath.tsx index aff068d36..d1bd932eb 100644 --- a/apps/ai-dial-admin/src/components/Common/FilePath/FilePath.tsx +++ b/apps/ai-dial-admin/src/components/Common/FilePath/FilePath.tsx @@ -141,7 +141,7 @@ const FilePath: FC = ({ searchable: false, }} showCreateFolderButton={shouldAbleToCreateNewFolder} - excludedPaths={['/platform']} + excludedPaths={['platform/']} /> From 49482e512b5e05a79d00960f3cdc77f35088ef94 Mon Sep 17 00:00:00 2001 From: Yauheni Osipau Date: Mon, 14 Sep 2026 13:56:00 +0300 Subject: [PATCH 2/2] fix test --- .../src/components/Common/FilePath/tests/FilePath.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ai-dial-admin/src/components/Common/FilePath/tests/FilePath.spec.tsx b/apps/ai-dial-admin/src/components/Common/FilePath/tests/FilePath.spec.tsx index 0108f0fa4..5f2497549 100644 --- a/apps/ai-dial-admin/src/components/Common/FilePath/tests/FilePath.spec.tsx +++ b/apps/ai-dial-admin/src/components/Common/FilePath/tests/FilePath.spec.tsx @@ -26,7 +26,7 @@ vi.mock('@epam/ai-dial-ui-kit', async (importOriginal) => { }) => { if (!open) return null; - const isExcluded = (path?: string) => !!path && excludedPaths.some((excluded) => `/${path}`.startsWith(excluded)); + const isExcluded = (path?: string) => !!path && excludedPaths.some((excluded) => path.startsWith(excluded)); return (
@@ -69,7 +69,7 @@ describe('FilePath', () => { await user.click(screen.getByRole('button', { name: 'ActionMenuOperation.Move_to' })); expect(screen.getByText('item:public')).toBeInTheDocument(); - expect(screen.queryByText('root:platform')).not.toBeInTheDocument(); + expect(screen.queryByText('item:platform')).not.toBeInTheDocument(); expect(screen.queryByText('item:platform')).not.toBeInTheDocument(); });