integration_test

In integration_test you have to perform two steps:

First load the main app widget using
the tester.pumpWidget method.

Then, use expect with the matcher findsOneWidget to verify
that the widget is displayed.

Example: Tap actions

This test performs a tap action on the first item on the list,
which is a ListTile with the text “Alder”.

After the tap, the test waits for the details to appear.
In this case, it waits for the widget with the text “Alnus” to
be displayed.

Also , the test verifies that the text
“Please select a plant from the list.”
is no longer displayed.

flutter_driver

In flutter_driver, use the driver.tap method to perform
a tap over a widget using a finder.

To verify that a widget is not displayed,
use the waitForAbsent method.