diff --git a/server/lib/src/models/api/set_text.dart b/server/lib/src/models/api/set_text.dart index da9d519..a41ad62 100644 --- a/server/lib/src/models/api/set_text.dart +++ b/server/lib/src/models/api/set_text.dart @@ -1,16 +1,14 @@ class SetTextModal { - dynamic? text; - List value; + dynamic text; + List value; SetTextModal({this.text, required this.value}); factory SetTextModal.fromJson(Map json) => SetTextModal( text: json['text'], - value: json['text'] as List, + value: json['value'] as List, ); - Map toJson() => { - 'text': text, - 'value': value - }; + Map toJson() => + {'text': text, 'value': value}; } diff --git a/server/lib/src/runner.dart b/server/lib/src/runner.dart index 71fa0ca..fc4f80b 100644 --- a/server/lib/src/runner.dart +++ b/server/lib/src/runner.dart @@ -9,7 +9,7 @@ import 'package:integration_test/integration_test.dart'; import 'package:package_info_plus/package_info_plus.dart'; const MAX_TEST_DURATION_SECS = 24 * 60 * 60; -const serverVersion = '0.0.16'; +const serverVersion = '0.0.17'; void initializeTest({Widget? app, Function? callback}) async { IntegrationTestWidgetsFlutterBinding binding = @@ -31,8 +31,11 @@ void initializeTest({Widget? app, Function? callback}) async { var appInfo = await PackageInfo.fromPlatform(); // Need a better way to fetch this for automated release, this needs to be updated along with version bump // Can stay for now as it is not a breaking change - FlutterDriver.instance - .initialize(tester: tester, binding: binding, appInfo: appInfo, serverVersion: serverVersion); + FlutterDriver.instance.initialize( + tester: tester, + binding: binding, + appInfo: appInfo, + serverVersion: serverVersion); //await tester.pumpWidget(app); // await tester.tap(find.text("Form widgets")); // await tester.pumpAndSettle(); diff --git a/server/pubspec.yaml b/server/pubspec.yaml index b9ca22e..62cf1ac 100644 --- a/server/pubspec.yaml +++ b/server/pubspec.yaml @@ -1,6 +1,6 @@ name: appium_flutter_server description: "Appium Flutter server using Integration Test package for testing Flutter apps with Appium" -version: 0.0.16 +version: 0.0.17 homepage: "https://github.com/AppiumTestDistribution/appium-flutter-server" environment: