diff --git a/src/assets/BDDWithFlutter/BDDWithFlutter.md b/src/assets/BDDWithFlutter/BDDWithFlutter.md index c22bad4..d92209a 100644 --- a/src/assets/BDDWithFlutter/BDDWithFlutter.md +++ b/src/assets/BDDWithFlutter/BDDWithFlutter.md @@ -108,7 +108,6 @@ Future main() { ..customStepParameterDefinitions = [] ..restartAppBetweenScenarios = true ..targetAppPath = "test_driver/app.dart"; - // ..exitAfterTestRun = true; // set to false if debugging to exit cleanly [removed from gherkin 2.0.0] return GherkinRunner().execute(config); } ``` @@ -128,7 +127,7 @@ class GivenCounterIsSetTo extends Given1WithWorld { @override Future executeStep(String expectedCounter) async { final locator = find.byValueKey("counter"); - final actualCount = await FlutterDriverUtils.getText(world.driver, locator); + final actualCount = await FlutterDriverUtils.getText(world.driver!, locator); expectMatch(actualCount, expectedCounter); } }