Skip to content

Commit

Permalink
fix(test): unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUmer44 committed Nov 1, 2024
1 parent 6c3f751 commit 27b4da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/App/SideBar/FilterSearch/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ describe('FilterSearch Component', () => {
expect(type1Pill).toHaveStyle(`color: ${colors.black}`)
})

it('should apply filters when "Show Results" is clicked', async () => {
it('should apply filters when "Apply" is clicked', async () => {
renderComponent()

const type1Pill = screen.getByText('Type1')

fireEvent.click(type1Pill)

const showResultsButton = screen.getByText('Show Results')
const showResultsButton = screen.getByText('Apply')

fireEvent.click(showResultsButton)

Expand Down

0 comments on commit 27b4da6

Please sign in to comment.