Skip to content

Commit

Permalink
Fixed type incompatible
Browse files Browse the repository at this point in the history
  • Loading branch information
grgprarup committed Jul 8, 2024
1 parent c753cff commit 17312ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/assets/BDDWithFlutter/BDDWithFlutter.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ Future<void> 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);
}
```
Expand All @@ -128,7 +127,7 @@ class GivenCounterIsSetTo extends Given1WithWorld<String, FlutterWorld> {
@override
Future<void> 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);
}
}
Expand Down

0 comments on commit 17312ab

Please sign in to comment.