Skip to content

Commit

Permalink
Update packages/react/src/SearchField/SearchField.test.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Aram <[email protected]>
  • Loading branch information
dlnr and alimpens authored May 14, 2024
1 parent 9adc4e8 commit 48c9ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/SearchField/SearchField.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ describe('Search field', () => {
it('renders the button with a label', () => {
render(<SearchField.Button label="Search" />)

const component = screen.getByRole('button')
const component = screen.getByRole('button', { name: 'Search' })

expect(component).toHaveTextContent('Search')
expect(component).toBeInTheDocument()
})

it('renders the outer container design system BEM class name', () => {
Expand Down

0 comments on commit 48c9ea6

Please sign in to comment.