This commit is contained in:
Benjamin Canac
2025-07-11 16:30:33 +02:00
parent b13a4370da
commit afcf86ac63
4 changed files with 13 additions and 13 deletions

View File

@@ -120,7 +120,7 @@ describe('CheckboxGroup', () => {
test('no label for=... on FormField', async () => {
const { wrapper } = await createForm()
const formFieldLabel = wrapper.findAll('label').map(label => label.attributes()).filter(label => !label.for?.includes(':'))[0]
expect(formFieldLabel.for).toBeUndefined()
expect(formFieldLabel?.for).toBeUndefined()
})
})
})