mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 17:58:08 +08:00
test: fix test
This commit is contained in:
parent
3586c09a9e
commit
6e65dd6f05
@ -2746,7 +2746,7 @@ describe('Select', () => {
|
|||||||
const input = wrapper.find('input')
|
const input = wrapper.find('input')
|
||||||
input.element.focus()
|
input.element.focus()
|
||||||
|
|
||||||
selectVm.debouncedQueryChange({
|
selectVm.onInput({
|
||||||
target: {
|
target: {
|
||||||
value: '蚵仔煎',
|
value: '蚵仔煎',
|
||||||
},
|
},
|
||||||
@ -2754,7 +2754,7 @@ describe('Select', () => {
|
|||||||
|
|
||||||
vi.runAllTimers()
|
vi.runAllTimers()
|
||||||
await nextTick()
|
await nextTick()
|
||||||
expect(selectVm.hoverIndex).toBe(2)
|
expect(selectVm.states.hoveringIndex).toBe(2)
|
||||||
|
|
||||||
vi.useRealTimers()
|
vi.useRealTimers()
|
||||||
})
|
})
|
||||||
@ -2772,7 +2772,7 @@ describe('Select', () => {
|
|||||||
const input = wrapper.find('input')
|
const input = wrapper.find('input')
|
||||||
input.element.focus()
|
input.element.focus()
|
||||||
|
|
||||||
selectVm.debouncedQueryChange({
|
selectVm.onInput({
|
||||||
target: {
|
target: {
|
||||||
value: '蚵仔煎',
|
value: '蚵仔煎',
|
||||||
},
|
},
|
||||||
@ -2780,7 +2780,7 @@ describe('Select', () => {
|
|||||||
|
|
||||||
vi.runAllTimers()
|
vi.runAllTimers()
|
||||||
await nextTick()
|
await nextTick()
|
||||||
expect(selectVm.hoverIndex).toBe(2)
|
expect(selectVm.states.hoveringIndex).toBe(2)
|
||||||
|
|
||||||
vi.useRealTimers()
|
vi.useRealTimers()
|
||||||
})
|
})
|
||||||
@ -2798,7 +2798,7 @@ describe('Select', () => {
|
|||||||
const input = wrapper.find('input')
|
const input = wrapper.find('input')
|
||||||
input.element.focus()
|
input.element.focus()
|
||||||
|
|
||||||
selectVm.debouncedQueryChange({
|
selectVm.onInput({
|
||||||
target: {
|
target: {
|
||||||
value: '蚵仔煎',
|
value: '蚵仔煎',
|
||||||
},
|
},
|
||||||
@ -2806,7 +2806,7 @@ describe('Select', () => {
|
|||||||
|
|
||||||
vi.runAllTimers()
|
vi.runAllTimers()
|
||||||
await nextTick()
|
await nextTick()
|
||||||
expect(selectVm.hoverIndex).toBe(2)
|
expect(selectVm.states.hoveringIndex).toBe(2)
|
||||||
|
|
||||||
vi.useRealTimers()
|
vi.useRealTimers()
|
||||||
})
|
})
|
||||||
@ -2847,7 +2847,7 @@ describe('Select', () => {
|
|||||||
const input = wrapper.find('input')
|
const input = wrapper.find('input')
|
||||||
input.element.focus()
|
input.element.focus()
|
||||||
|
|
||||||
selectVm.debouncedQueryChange({
|
selectVm.onInput({
|
||||||
target: {
|
target: {
|
||||||
value: '蚵仔煎',
|
value: '蚵仔煎',
|
||||||
},
|
},
|
||||||
@ -2855,7 +2855,7 @@ describe('Select', () => {
|
|||||||
|
|
||||||
vi.runAllTimers()
|
vi.runAllTimers()
|
||||||
await nextTick()
|
await nextTick()
|
||||||
expect(selectVm.hoverIndex).toBe(2)
|
expect(selectVm.states.hoveringIndex).toBe(2)
|
||||||
|
|
||||||
vi.useRealTimers()
|
vi.useRealTimers()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user