Skip to content

Commit bb423fb

Browse files
committed
chore: add unit test for new functionality
1 parent ebdc1c8 commit bb423fb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/vuetify/src/components/VCombobox/__tests__/VCombobox.spec.browser.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,22 @@ describe('VCombobox', () => {
380380
id: 'item2',
381381
}])
382382
})
383+
384+
it('should show placeholder if initial value is empty string', async () => {
385+
render(() => (
386+
<VCombobox
387+
v-model={''}
388+
items={['a', 'b', 'c']}
389+
multiple
390+
itemTitle="text"
391+
itemValue="value"
392+
returnObject
393+
/>
394+
))
395+
396+
const inputField = screen.getByCSS('.v-field')
397+
expect(inputField).toBeUndefined()
398+
})
383399
})
384400

385401
describe('readonly', () => {

0 commit comments

Comments
 (0)