Filling in an input Element
Learn how to simulate a user filling in an input element in a test.
We'll cover the following...
Starter project
The starter project contains the same ContactForm
component as the previous lesson. It also includes a half-implemented test that performs checks on a successful form submission.
A copy of the code is in the code widget below. Click the “Run” button to run the tests.
export default "test-file-stub";
Half-implemented test
Completing the test
There is a keyboard
function in the user-event
package that simulates ...
Access this course and 1400+ top-rated courses and projects.