@testing-library/user-event
https://gyazo.com/3be9265cf1bfb6f038ccf64eab431ea4
github
docs
#WIP
どういうAPIがある?
docs
★User Interactions
Introduction
Installation
Setup
Options
timerとかdelayとかの設定
https://testing-library.com/docs/user-event/options
Pointer
https://testing-library.com/docs/user-event/pointer
マウスポインタの操作
クリックしたり、特定のElementの場所までポインタを移動したり
Keyboard
https://testing-library.com/docs/user-event/keyboard
キーの入力
keyboard('foo')のように書くと、実際にf、o、oのように1文字ずつ入力される
Clipboard
https://testing-library.com/docs/user-event/clipboard
Clipboard API
Utility APIs
より複合的なもの
内部で実際に何をやってるかはdocsにも書いてるし、コードも簡潔なので読めばわかるmrsekut.icon
https://testing-library.com/docs/user-event/utility
clear()
inputなどのfieldの内容を全部消す
selectOptions(), deselectOptions()
selectboxで選択する
type()
文字を入力する
upload()
fileをアップロードする
Convenience APIs
より複合的なもの
内部で実際に何をやってるかはdocsにも書いてるし、コードも簡潔なので読めばわかるmrsekut.icon
https://testing-library.com/docs/user-event/convenience/
click()
dblClick()
hover()
unhover()
tab()
keyboard('{Tab}')
user-event v13