Fix test: use exact match for Products sidebar button
This commit is contained in:
parent
f071e72678
commit
b61b4bca23
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue