Skip to content

Commit

Permalink
(PC-30946)[PRO] test: Adds missing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jclery-pass committed Sep 3, 2024
1 parent e0731c2 commit 4808e63
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pro/src/pages/VenueSettings/__specs__/VenueSettingsScreen.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,20 @@ describe('VenueSettingsScreen', () => {
expect(allocineCard).toBeInTheDocument()
expect(addProviderButton).toBeInTheDocument()
})

it('should display the withdrawal confirm dialog when submitting with the box checked', async () => {
await renderForm()

await userEvent.type(
screen.getByLabelText('Informations de retrait'),
'Nouvelle infos de retrait'
)
await userEvent.click(screen.getByText('Enregistrer'))

expect(
screen.getByText(
'Souhaitez-vous prévenir les bénéficiaires de la modification des modalités de retrait ?'
)
).toBeInTheDocument()
})
})

0 comments on commit 4808e63

Please sign in to comment.