Skip to content

Commit

Permalink
Fix issue with setText (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudharsan-selvaraj authored Jul 7, 2024
1 parent 03634a8 commit 2bd7e25
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 5 additions & 7 deletions server/lib/src/models/api/set_text.dart
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
class SetTextModal {
dynamic? text;
List<dynamic> value;
dynamic text;
List<dynamic> value;

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

factory SetTextModal.fromJson(Map<String, dynamic> json) => SetTextModal(
text: json['text'],
value: json['text'] as List<dynamic>,
value: json['value'] as List<dynamic>,
);

Map<String, dynamic> toJson() => <String, dynamic>{
'text': text,
'value': value
};
Map<String, dynamic> toJson() =>
<String, dynamic>{'text': text, 'value': value};
}
9 changes: 6 additions & 3 deletions server/lib/src/runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion server/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 2bd7e25

Please sign in to comment.