From 9e4cb83a26f828bb0d633505a74140136bdb1855 Mon Sep 17 00:00:00 2001 From: Bangarraju-Microsoft Date: Mon, 6 Jan 2025 16:33:00 +0530 Subject: [PATCH] removed debuger from test files --- code/frontend/jest.config.ts | 1 + .../ChatHistoryListItemCell/ChatHistoryListItemCell.test.tsx | 3 --- .../ChatHistoryListItemGroups.test.tsx | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/code/frontend/jest.config.ts b/code/frontend/jest.config.ts index 0c19c30ce..c349bf92b 100644 --- a/code/frontend/jest.config.ts +++ b/code/frontend/jest.config.ts @@ -27,6 +27,7 @@ const config: Config.InitialOptions = { '/src/vite-env.d.ts', '/src/components/QuestionInput/index.ts', '/src/components/Answer/index.ts', + '/src/components/Utils/utils.tsx', ], }; diff --git a/code/frontend/src/components/ChatHistoryListItemCell/ChatHistoryListItemCell.test.tsx b/code/frontend/src/components/ChatHistoryListItemCell/ChatHistoryListItemCell.test.tsx index c147a0e2f..94ae37505 100644 --- a/code/frontend/src/components/ChatHistoryListItemCell/ChatHistoryListItemCell.test.tsx +++ b/code/frontend/src/components/ChatHistoryListItemCell/ChatHistoryListItemCell.test.tsx @@ -306,7 +306,6 @@ render(); fireEvent.keyDown(inputItem, { key: 'Escape', code: 'Escape', charCode: 27 }); await waitFor(() => { - screen.debug() //console.log("Current value:", inputItem); // Debugging log expect(inputItem).not.toBeInTheDocument(); }); @@ -358,7 +357,6 @@ render(); // Simulate the onChange event by typing into the input field fireEvent.change(inputItem, { target: { value: 'Updated Chat Change' } }); - screen.debug() userEvent.click(screen.getByRole('button', { name: 'confirm new title' })) await waitFor(() => { @@ -433,7 +431,6 @@ render(); fireEvent.keyDown(inputItem, { key: 'Enter', code: 'Enter', charCode: 13 }) await waitFor(() => { - screen.debug() //console.log("Current value:", inputItem); // Debugging log expect(inputItem).toHaveValue('Updated Chat Change'); }); diff --git a/code/frontend/src/components/ChatHistoryListItemGroups/ChatHistoryListItemGroups.test.tsx b/code/frontend/src/components/ChatHistoryListItemGroups/ChatHistoryListItemGroups.test.tsx index e2fa58faf..81ddfc582 100644 --- a/code/frontend/src/components/ChatHistoryListItemGroups/ChatHistoryListItemGroups.test.tsx +++ b/code/frontend/src/components/ChatHistoryListItemGroups/ChatHistoryListItemGroups.test.tsx @@ -138,7 +138,6 @@ describe('ChatHistoryListItemGroups', () => { // Click on the first cell fireEvent.click(cells[0]); - screen.debug() // Wait for the mock function to be called with the correct item await waitFor(() => { expect(mockOnSelectConversation).toHaveBeenCalledWith(mockGroupedChatHistory[0].entries[0].id);