Skip to content

Commit

Permalink
chore: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Dec 7, 2024
1 parent f839fdc commit 21e036d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions packages/browser/src/client/tester/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ export function createUserEvent(__tl_user_event_base__?: TestingLibraryUserEvent
})
},
click(element: Element | Locator, options: UserEventClickOptions = {}) {
if (typeof __tl_user_event__ !== 'undefined') {
return __tl_user_event__.click(
element instanceof Element ? element : element.element(),
)
}
return convertToLocator(element).click(processClickOptions(options))
},
dblClick(element: Element | Locator, options: UserEventClickOptions = {}) {
Expand Down
3 changes: 2 additions & 1 deletion packages/browser/src/client/tester/locators/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { page, server, userEvent } from '@vitest/browser/context'
import { userEvent } from '@testing-library/user-event'
import { page, server } from '@vitest/browser/context'
import {
getByAltTextSelector,
getByLabelSelector,
Expand Down

0 comments on commit 21e036d

Please sign in to comment.