Skip to content

Commit

Permalink
added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Medhini Reddy Maryada authored and Sai Medhini Reddy Maryada committed Aug 29, 2024
1 parent cd262ce commit f5c5e90
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions public/pages/workflow_detail/workflow_detail.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div> element
});
});

0 comments on commit f5c5e90

Please sign in to comment.