Skip to content

Commit 0350560

Browse files
committed
test(unit): Trigger focusin on input
1 parent 196d999 commit 0350560

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/unit/specs/Datepicker/Datepicker.spec.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,10 @@ describe('Datepicker mounted and attached to body with openDate', () => {
10361036
openDate,
10371037
})
10381038

1039-
await wrapper.vm.open()
1039+
const input = wrapper.find('input')
1040+
1041+
await input.trigger('focusin')
1042+
await input.trigger('click')
10401043
vi.advanceTimersByTime(250)
10411044

10421045
const firstAvailableDate = wrapper.find('button.cell:not(.muted):enabled')
@@ -1055,7 +1058,10 @@ describe('Datepicker mounted and attached to body with openDate', () => {
10551058
openDate,
10561059
})
10571060

1058-
await wrapper.vm.open()
1061+
const input = wrapper.find('input')
1062+
1063+
await input.trigger('focusin')
1064+
await input.trigger('click')
10591065
vi.advanceTimersByTime(250)
10601066

10611067
const firstAvailableDate = wrapper.find('button.cell:not(.muted):enabled')

0 commit comments

Comments
 (0)