test(config): fixed tests
This commit is contained in:
parent
c3070089c5
commit
07f16dc962
|
@ -1 +1 @@
|
|||
include: package:pedantic/analysis_options.1.9.0.yaml
|
||||
include: package:pedantic/analysis_options.yaml
|
|
@ -1 +1 @@
|
|||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\integration_test-1.0.1\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\integration_test-1.0.1\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-01-07 14:23:54.911169","version":"1.22.5"}
|
||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\integration_test-1.0.1\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\integration_test-1.0.1\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-01-07 14:28:20.721377","version":"1.22.5"}
|
|
@ -21,8 +21,7 @@ StepDefinitionGeneric WhenTapWidget() {
|
|||
RegExp(
|
||||
r'I tap the {string} (?:button|element|label|icon|field|text|widget)$'),
|
||||
(key, context) async {
|
||||
final finder =
|
||||
context.world.appDriver.findBy(key, FindType.key);
|
||||
final finder = context.world.appDriver.findBy(key, FindType.key);
|
||||
|
||||
await context.world.appDriver.scrollIntoView(
|
||||
finder,
|
||||
|
|
|
@ -3,7 +3,6 @@ import 'package:flutter_gherkin/flutter_gherkin.dart';
|
|||
|
||||
import '../flutter_run_process_handler.dart';
|
||||
|
||||
|
||||
class FlutterDriverWorld extends FlutterWorld {
|
||||
FlutterRunProcessHandler _flutterRunProcessHandler;
|
||||
|
||||
|
|
|
@ -15,4 +15,4 @@ abstract class FlutterWorld extends World {
|
|||
Future<bool> restartApp({
|
||||
Duration timeout = const Duration(seconds: 60),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ packages:
|
|||
source: hosted
|
||||
version: "12.0.0"
|
||||
analyzer:
|
||||
dependency: transitive
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: analyzer
|
||||
url: "https://pub.dartlang.org"
|
||||
|
@ -469,4 +469,4 @@ packages:
|
|||
version: "2.2.1"
|
||||
sdks:
|
||||
dart: ">=2.10.0-110 <2.11.0"
|
||||
flutter: ">=1.13.0 <2.0.0"
|
||||
flutter: ">=1.17.0 <2.0.0"
|
||||
|
|
|
@ -4,8 +4,8 @@ version: 1.2.0
|
|||
homepage: https://github.com/jonsamwell/flutter_gherkin
|
||||
|
||||
environment:
|
||||
sdk: ">=2.6.0 <3.0.0"
|
||||
flutter: ">=1.13.0"
|
||||
sdk: ">=2.7.0 <3.0.0"
|
||||
flutter: ">=1.17.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
@ -14,6 +14,7 @@ dependencies:
|
|||
sdk: flutter
|
||||
flutter_driver:
|
||||
sdk: flutter
|
||||
analyzer: ">=0.37.0 <0.41.0"
|
||||
glob: ^1.1.7
|
||||
meta: ">=1.1.6 <2.0.0"
|
||||
integration_test: ^1.0.1
|
||||
|
|
|
@ -9,7 +9,7 @@ void main() {
|
|||
group('config', () {
|
||||
group('prepare', () {
|
||||
test('flutter app runner hook added', () {
|
||||
final config = FlutterTestConfiguration();
|
||||
final config = FlutterDriverTestConfiguration();
|
||||
expect(config.hooks, isNull);
|
||||
config.prepare();
|
||||
expect(config.hooks, isNotNull);
|
||||
|
@ -18,7 +18,7 @@ void main() {
|
|||
});
|
||||
|
||||
test('common steps definition added', () {
|
||||
final config = FlutterTestConfiguration();
|
||||
final config = FlutterDriverTestConfiguration();
|
||||
expect(config.stepDefinitions, isNull);
|
||||
|
||||
config.prepare();
|
||||
|
|
Loading…
Reference in New Issue