From 62c7a4f4eb649456c231a3e4210a978893a272ad Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 6 Sep 2023 10:51:02 -0700 Subject: [PATCH] Fixup Test and FFI --- .../features/04_profile_mgmt/01_create_delete.feature | 4 ++-- lib/cwtch/ffi.dart | 2 +- lib/views/filesharingview.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integration_test/features/04_profile_mgmt/01_create_delete.feature b/integration_test/features/04_profile_mgmt/01_create_delete.feature index c656035a..a92572be 100644 --- a/integration_test/features/04_profile_mgmt/01_create_delete.feature +++ b/integration_test/features/04_profile_mgmt/01_create_delete.feature @@ -74,7 +74,7 @@ Feature: Basic Profile Management When I tap the "IconButton" widget with tooltip "Edit Profile Alice (Encrypted)" Then I expect the text 'Display Name' to be present Then I fill the "displayNameFormElement" field with "Carol (Encrypted)" - And I tap the "button" widget with label "Save Profile" + And I tap the widget that contains the text "Save Profile" And I wait until the widget with type 'ProfileMgrView' is present Then I expect a "ProfileRow" widget with text "Carol (Encrypted)" @@ -90,7 +90,7 @@ Feature: Basic Profile Management When I tap the "IconButton" widget with tooltip "Edit Profile Carol (Encrypted)" Then I expect the text 'Display Name' to be present Then I fill the "currentPasswordFormElement" field with "password1" - When I tap the button that contains the text "Delete" + And I tap the widget that contains the text "Delete" Then I wait for 2 seconds When I tap the "button" widget with label "Really Delete Profile" And I wait until the widget with type 'ProfileMgrView' is present diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index 7bcffcfd..ef837140 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -892,7 +892,7 @@ class CwtchFfi implements Cwtch { @override void StopSharing(String profile, String filekey) { - var stopSharingC = library.lookup>("c_StopSharing"); + var stopSharingC = library.lookup>("c_StopFileShare"); // ignore: non_constant_identifier_names final StopSharing = stopSharingC.asFunction(); final utf8profile = profile.toNativeUtf8(); diff --git a/lib/views/filesharingview.dart b/lib/views/filesharingview.dart index 62fda176..50c7fe5e 100644 --- a/lib/views/filesharingview.dart +++ b/lib/views/filesharingview.dart @@ -51,7 +51,7 @@ class _FileSharingViewState extends State { semanticChildCount: sharedFiles.length, itemBuilder: (context, index) { String filekey = sharedFiles[index]["FileKey"]; - EnvironmentConfig.debugLog("$sharedFiles " + sharedFiles[index].toString()); + //EnvironmentConfig.debugLog("$sharedFiles " + sharedFiles[index].toString()); return SwitchListTile( title: Text(sharedFiles[index]["Path"]), subtitle: Text(sharedFiles[index]["DateShared"]),