Skip to content

Commit 196d999

Browse files
committed
test(unit): Click on input to open
1 parent 7e72244 commit 196d999

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,9 @@ describe('Datepicker mounted and attached to body with openDate', () => {
10741074
openDate,
10751075
})
10761076

1077-
await wrapper.vm.open()
1077+
const input = wrapper.find('input')
1078+
1079+
await input.trigger('click')
10781080
vi.advanceTimersByTime(250)
10791081

10801082
const nextButton = wrapper.find('button.next')
@@ -1092,7 +1094,9 @@ describe('Datepicker mounted and attached to body with openDate', () => {
10921094
openDate,
10931095
})
10941096

1095-
await wrapper.vm.open()
1097+
const input = wrapper.find('input')
1098+
1099+
await input.trigger('click')
10961100
vi.advanceTimersByTime(250)
10971101

10981102
const prevButton = wrapper.find('button.prev')

0 commit comments

Comments
 (0)