Skip to content

Commit

Permalink
fix(cutting-off-tooltip): resolved eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtabBukhari committed Oct 9, 2024
1 parent 6d0e6f7 commit b9233ee
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ describe('AiAnswer Component', () => {

await waitFor(() => expect(screen.getByText(/React/)).toBeInTheDocument())

const reactEntity = screen.getByText((content, element) => {
return content.startsWith('React') && element.tagName === 'SPAN'
})
const reactEntity = screen.getByText(
(content, element) => content.startsWith('React') && element.tagName === 'SPAN',
)

fireEvent.mouseOver(reactEntity)

const tooltip = await screen.findByText('A JavaScript library for building user interfaces.')

expect(tooltip).toBeVisible()
})
})

0 comments on commit b9233ee

Please sign in to comment.