Skip to content

Commit

Permalink
not required check
Browse files Browse the repository at this point in the history
  • Loading branch information
RulaKhaled committed Sep 20, 2024
1 parent 9540f19 commit 05eb7cf
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,16 @@ describe('TokenlessSection', () => {
const requiredOption = screen.getByLabelText('Required')
await user.click(requiredOption)

const requireTokenButton = screen.getByRole('button', {
name: /Require token for upload/,
})

await user.click(requireTokenButton)
expect(requiredOption).toBeChecked()
const notRequiredOption = screen.getByLabelText('Not required')
await user.click(notRequiredOption)
expect(notRequiredOption).not.toBeChecked()

await user.click(notRequiredOption)
expect(notRequiredOption).toBeChecked()
})
})

0 comments on commit 05eb7cf

Please sign in to comment.