chore(lint): formating and changelog updates

This commit is contained in:
Jon Samwell 2020-09-20 14:12:16 +10:00
parent d01b4d5086
commit be85bc670a
6 changed files with 30 additions and 27 deletions

View File

@ -1,3 +1,10 @@
## [1.1.8+9] - 20/09/2020
* Fixes #84 - pre-defined `present within N seconds` is limited by system timeout (thanks @doubleo2)
* Added build mode to enable profile build and performance profiling (thanks @lsuhov)
* Updated to latest dart_gherkin library which fixes access to the default step timeout see #81
## [1.1.8+8] - 11/08/2020
* Added well know steps and a driver helper method to long press a widget (fixed issue and documentation)

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1 @@
enum BuildMode {
Debug,
Profile
}
enum BuildMode { Debug, Profile }

View File

@ -14,17 +14,16 @@ import 'package:gherkin/gherkin.dart';
/// `Then I expect the button 'save' to be present within 1 second`
StepDefinitionGeneric ThenExpectWidgetToBePresent() {
return given2<String, int, FlutterWorld>(
RegExp(
r'I expect the (?:button|element|label|icon|field|text|widget|dialog|popup) {string} to be present within {int} second(s)$'),
(key, seconds, context) async {
final isPresent = await FlutterDriverUtils.isPresent(
context.world.driver,
find.byValueKey(key),
timeout: Duration(seconds: seconds),
);
context.expect(isPresent, true);
},
configuration: StepDefinitionConfiguration()
..timeout = Duration(days: 9999)
);
RegExp(
r'I expect the (?:button|element|label|icon|field|text|widget|dialog|popup) {string} to be present within {int} second(s)$'),
(key, seconds, context) async {
final isPresent = await FlutterDriverUtils.isPresent(
context.world.driver,
find.byValueKey(key),
timeout: Duration(seconds: seconds),
);
context.expect(isPresent, true);
},
configuration: StepDefinitionConfiguration()
..timeout = const Duration(days: 1));
}

View File

@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.0"
version: "7.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "0.39.16"
version: "0.39.17"
archive:
dependency: transitive
description:
@ -63,7 +63,7 @@ packages:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
version: "0.2.0"
clock:
dependency: transitive
description:
@ -91,7 +91,7 @@ packages:
name: coverage
url: "https://pub.dartlang.org"
source: hosted
version: "0.14.0"
version: "0.14.1"
crypto:
dependency: transitive
description:
@ -146,7 +146,7 @@ packages:
name: gherkin
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.8+3"
version: "1.1.8+4"
glob:
dependency: "direct main"
description:
@ -237,7 +237,7 @@ packages:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.6+3"
version: "0.9.7"
node_interop:
dependency: transitive
description:
@ -314,7 +314,7 @@ packages:
name: shelf
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.7"
version: "0.7.9"
shelf_packages_handler:
dependency: transitive
description:

View File

@ -1,6 +1,6 @@
name: flutter_gherkin
description: A Gherkin / Cucumber parser and test runner for Dart and Flutter
version: 1.1.8+8
version: 1.1.8+9
homepage: https://github.com/jonsamwell/flutter_gherkin
environment:
@ -16,7 +16,7 @@ dependencies:
sdk: flutter
glob: ^1.1.7
meta: ">=1.1.6 <2.0.0"
gherkin: ^1.1.8+3
gherkin: ^1.1.8+4
# gherkin:
# path: ../dart_gherkin