Update Widget & Integration Tests authored by Scott Bucher's avatar Scott Bucher
......@@ -61,7 +61,7 @@ void main() {
```
In this example, `find` is being used to locate a rendered widget which has the value we are looking for and the second argument in `expect()` asserts that there is only one widget with this value.
As we will see in the integration test example,`find` has multiple methods that can be used for locating your widget, such as `byIcon` which we use, but also `byType`, which takes in a widget's name. You can look in the CommonFinders class of the flutter_test package to see all the possible finders.
As we will see in the integration test example, `find` has multiple methods that can be used for locating your widget, such as `byIcon` which we use, but also `byType`, which takes in a widget's name. You can look in the CommonFinders class of the flutter_test package to see all the possible finders.
You may have noticed we didn't test to see if there was a rendered widget which was green, as we specified the color in the widget creation. This is because there isn't a CommonFinder for color, and thus we need to check the instance variables of the widget to determine if the color was set correctly. We can do that by adding the following line:
```dart
......
......