Skip to content

Commit

Permalink
update tokenless section with one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
RulaKhaled committed Sep 20, 2024
1 parent 7eb05d8 commit ccc35ef
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,16 @@ describe('TokenlessSection', () => {
const modal = screen.getByText('Mocked TokenRequiredModal')
expect(modal).toBeInTheDocument()
})

it("switches to 'Not required' option when not required is selected", async () => {
const { user } = setup()

const requiredOption = screen.getByLabelText('Required')
await user.click(requiredOption)

const notRequiredOption = screen.getByLabelText('Not required')
await user.click(notRequiredOption)

expect(notRequiredOption).toBeChecked()
})
})

0 comments on commit ccc35ef

Please sign in to comment.