diff --git a/src/App.test.tsx b/src/App.test.tsx index a84ad9c..ec0196a 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -131,7 +131,7 @@ describe('Supplier Portal Onboarding & Active Dashboard Tests', () => { expect(await screen.findByText(/Total Sales/i)).toBeInTheDocument() // Check Sidebar Tab click: Manage Products - const productsTabBtn = screen.getByText(/Products/i) + const productsTabBtn = screen.getAllByText(/^Products$/i)[0] fireEvent.click(productsTabBtn) expect(screen.getAllByText(/Products/i).length).toBeGreaterThan(0)