Tapping a FloatingActionButton to add the text to a list of todos.

Swiping-to-dismiss to remove the item from the list.

To keep the focus on testing,
this recipe won’t provide a detailed guide on how to build the todo app.
To learn more about how this app is built,
see the relevant recipes:

Create and style a text field

Handle taps

Create a basic list

Implement swipe to dismiss

2. Enter text in the text field

Now that you have a todo app, begin writing the test.
Start by entering text into the TextField.

Accomplish this task by:

Building the widget in the test environment.

Using the enterText()
method from the WidgetTester.