From f5c5e90bbb1045b8c5ff841682d231471d4e256d Mon Sep 17 00:00:00 2001 From: Sai Medhini Reddy Maryada Date: Wed, 28 Aug 2024 21:35:43 -0700 Subject: [PATCH] added --- .../pages/workflow_detail/workflow_detail.test.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/public/pages/workflow_detail/workflow_detail.test.tsx b/public/pages/workflow_detail/workflow_detail.test.tsx index 163a849f..8c00fcaf 100644 --- a/public/pages/workflow_detail/workflow_detail.test.tsx +++ b/public/pages/workflow_detail/workflow_detail.test.tsx @@ -51,19 +51,16 @@ const renderWithRouter = () => // }); // }); + describe('WorkflowDetail', () => { test('renders the page with a div element', () => { const { container } = renderWithRouter(); // Render the component - // Log the full rendered HTML - console.log("Rendered HTML:", container.innerHTML); - // Check if there's at least one div element in the rendered output - const divElements = container.querySelectorAll('div'); - console.log("Div elements found:", divElements); - - // Expect at least one div element to be present - expect(divElements.length).toBeGreaterThan(0); + const divElement = container.querySelector('div'); + + // Expect a div element to be present + expect(divElement).not.toBeNull(); // This checks that there is at least one
element }); });