mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [date-picker] remove extra prop in unit test (#9822)
This commit is contained in:
@@ -299,13 +299,9 @@ describe('DatePicker', () => {
|
||||
})
|
||||
|
||||
it('opens popper on click when input is focused', async () => {
|
||||
const wrapper = _mount(
|
||||
`<el-date-picker
|
||||
v-model="value"
|
||||
@focus="onFocus"
|
||||
/>`,
|
||||
() => ({ value: new Date(2016, 9, 10, 18, 40) })
|
||||
)
|
||||
const wrapper = _mount(`<el-date-picker v-model="value" />`, () => ({
|
||||
value: new Date(2016, 9, 10, 18, 40),
|
||||
}))
|
||||
const popperEl = document.querySelector('.el-picker__popper') as HTMLElement
|
||||
expect(popperEl.style.display).toBe('none')
|
||||
const input = wrapper.find('input')
|
||||
|
||||
Reference in New Issue
Block a user