| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [ ] Pas de régression - [x] TU/TI/TF rédigée - [x] TU/TI/TF OK - [x] CHANGELOG modifié --------- Co-authored-by: admin malio <malio@yuno.malio.fr> Co-authored-by: THOLOT DECHENE Matthieu <matthieu@yuno.malio.fr> Co-authored-by: matthieu <matthieu@yuno.malio.fr> Reviewed-on: #72 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
This commit was merged in pull request #72.
This commit is contained in:
@@ -68,8 +68,9 @@ describe('MalioSelectCheckbox', () => {
|
||||
})
|
||||
|
||||
await wrapper.get('button').trigger('click')
|
||||
const checkboxInputs = wrapper.findAll('input[type="checkbox"]')
|
||||
await checkboxInputs[1].setValue(true)
|
||||
// Le toggle se fait au clic sur la ligne d'option (la checkbox est en pointer-events-none).
|
||||
const optionRows = wrapper.findAll('li[role="option"]')
|
||||
await optionRows[1].trigger('click')
|
||||
|
||||
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual([['fr', 'be']])
|
||||
})
|
||||
@@ -149,8 +150,9 @@ describe('MalioSelectCheckbox', () => {
|
||||
|
||||
await wrapper.get('button').trigger('click')
|
||||
|
||||
const checkboxes = wrapper.findAll('input[type="checkbox"]')
|
||||
await checkboxes[0].setValue(true)
|
||||
// La ligne « tout sélectionner » est la première option de la liste.
|
||||
const selectAllRow = wrapper.findAll('li[role="option"]')[0]
|
||||
await selectAllRow.trigger('click')
|
||||
|
||||
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual([['fr', 'be', 'ca']])
|
||||
})
|
||||
@@ -162,8 +164,9 @@ describe('MalioSelectCheckbox', () => {
|
||||
|
||||
await wrapper.get('button').trigger('click')
|
||||
|
||||
const checkboxes = wrapper.findAll('input[type="checkbox"]')
|
||||
await checkboxes[0].setValue(false)
|
||||
// La ligne « tout sélectionner » est la première option de la liste.
|
||||
const selectAllRow = wrapper.findAll('li[role="option"]')[0]
|
||||
await selectAllRow.trigger('click')
|
||||
|
||||
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual([[]])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user