From 17312ab84a3f0dd6d47ef8a2a7089bd4a90a5175 Mon Sep 17 00:00:00 2001 From: Prarup Date: Tue, 14 May 2024 15:25:33 +0545 Subject: [PATCH] Fixed type incompatible --- src/assets/BDDWithFlutter/BDDWithFlutter.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } }