Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEBAS204 committed Mar 28, 2023
1 parent 89a87fd commit a4b6e4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/__tests__/components/settings/Interface.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ describe('Interface settings', () => {
const Adjective = screen.getByText('common.adjective')
expect(Adjective).toBeDefined()

const WordFlipButton = screen.getByLabelText('settings.language_word_flip')
const WordFlipButton = screen.getByRole('checkbox', {
title: 'settings.language_word_flip',
})
fireEvent.click(WordFlipButton)

expect(SPY_wordFlip).toHaveBeenCalled()
Expand Down

1 comment on commit a4b6e4d

@vercel
Copy link

@vercel vercel bot commented on a4b6e4d Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.