Skip to content

Commit 2bd7e25

Browse files
Fix issue with setText (#19)
1 parent 03634a8 commit 2bd7e25

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
class SetTextModal {
2-
dynamic? text;
3-
List<dynamic> value;
2+
dynamic text;
3+
List<dynamic> value;
44

55
SetTextModal({this.text, required this.value});
66

77
factory SetTextModal.fromJson(Map<String, dynamic> json) => SetTextModal(
88
text: json['text'],
9-
value: json['text'] as List<dynamic>,
9+
value: json['value'] as List<dynamic>,
1010
);
1111

12-
Map<String, dynamic> toJson() => <String, dynamic>{
13-
'text': text,
14-
'value': value
15-
};
12+
Map<String, dynamic> toJson() =>
13+
<String, dynamic>{'text': text, 'value': value};
1614
}

server/lib/src/runner.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:integration_test/integration_test.dart';
99
import 'package:package_info_plus/package_info_plus.dart';
1010

1111
const MAX_TEST_DURATION_SECS = 24 * 60 * 60;
12-
const serverVersion = '0.0.16';
12+
const serverVersion = '0.0.17';
1313

1414
void initializeTest({Widget? app, Function? callback}) async {
1515
IntegrationTestWidgetsFlutterBinding binding =
@@ -31,8 +31,11 @@ void initializeTest({Widget? app, Function? callback}) async {
3131
var appInfo = await PackageInfo.fromPlatform();
3232
// Need a better way to fetch this for automated release, this needs to be updated along with version bump
3333
// Can stay for now as it is not a breaking change
34-
FlutterDriver.instance
35-
.initialize(tester: tester, binding: binding, appInfo: appInfo, serverVersion: serverVersion);
34+
FlutterDriver.instance.initialize(
35+
tester: tester,
36+
binding: binding,
37+
appInfo: appInfo,
38+
serverVersion: serverVersion);
3639
//await tester.pumpWidget(app);
3740
// await tester.tap(find.text("Form widgets"));
3841
// await tester.pumpAndSettle();

server/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appium_flutter_server
22
description: "Appium Flutter server using Integration Test package for testing Flutter apps with Appium"
3-
version: 0.0.16
3+
version: 0.0.17
44
homepage: "https://github.com/AppiumTestDistribution/appium-flutter-server"
55

66
environment:

0 commit comments

Comments
 (0)