Skip to content

Commit cfdfd34

Browse files
committed
fix: unit tests
1 parent 83e6cc5 commit cfdfd34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/src/components/NumberInputV2/__tests__/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe('NumberInputV2', () => {
145145
await userEvent.clear(input)
146146
await userEvent.type(input, '5')
147147

148-
plusButton.click()
148+
await userEvent.click(plusButton)
149149
await waitFor(() => expect(input.value).toBe('10'))
150150
})
151151

@@ -157,7 +157,7 @@ describe('NumberInputV2', () => {
157157
await userEvent.clear(input)
158158
await userEvent.type(input, '15')
159159

160-
minusButton.click()
160+
await userEvent.click(minusButton)
161161
await waitFor(() => expect(input.value).toBe('10'))
162162
})
163163
})

0 commit comments

Comments
 (0)