testing-library / user-event

🐕 Simulate user events
https://testing-library.com/user-event
MIT License
2.14k stars 242 forks source link

Update delay document and add test confirming the delay behavior #1175

Open bsheps opened 8 months ago

bsheps commented 8 months ago

1174

What: This fixes a documentation error and adds a test to verify delay's behavior.

1174

Why:

Correct documentation and quality tests make the library easier to use and adopt. The delay option is an important tool for helping write stable tests against asynchronous code.

How:

Comment adjustment. Straight forward test case proving the delay works as described.

Checklist:

Thanks for taking the time to review the change. Any feedback is appreciated.

codesandbox-ci[bot] commented 8 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2b0ec8276d2448a7990a018d5e627f0f4d8c3033:

Sandbox Source
userEvent-dom Configuration
userEvent-react Configuration