Fixup Test and FFI
This commit is contained in:
parent
042b1287ff
commit
62c7a4f4eb
|
@ -74,7 +74,7 @@ Feature: Basic Profile Management
|
||||||
When I tap the "IconButton" widget with tooltip "Edit Profile Alice (Encrypted)"
|
When I tap the "IconButton" widget with tooltip "Edit Profile Alice (Encrypted)"
|
||||||
Then I expect the text 'Display Name' to be present
|
Then I expect the text 'Display Name' to be present
|
||||||
Then I fill the "displayNameFormElement" field with "Carol (Encrypted)"
|
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
|
And I wait until the widget with type 'ProfileMgrView' is present
|
||||||
Then I expect a "ProfileRow" widget with text "Carol (Encrypted)"
|
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)"
|
When I tap the "IconButton" widget with tooltip "Edit Profile Carol (Encrypted)"
|
||||||
Then I expect the text 'Display Name' to be present
|
Then I expect the text 'Display Name' to be present
|
||||||
Then I fill the "currentPasswordFormElement" field with "password1"
|
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
|
Then I wait for 2 seconds
|
||||||
When I tap the "button" widget with label "Really Delete Profile"
|
When I tap the "button" widget with label "Really Delete Profile"
|
||||||
And I wait until the widget with type 'ProfileMgrView' is present
|
And I wait until the widget with type 'ProfileMgrView' is present
|
||||||
|
|
|
@ -892,7 +892,7 @@ class CwtchFfi implements Cwtch {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void StopSharing(String profile, String filekey) {
|
void StopSharing(String profile, String filekey) {
|
||||||
var stopSharingC = library.lookup<NativeFunction<void_from_string_string_function>>("c_StopSharing");
|
var stopSharingC = library.lookup<NativeFunction<void_from_string_string_function>>("c_StopFileShare");
|
||||||
// ignore: non_constant_identifier_names
|
// ignore: non_constant_identifier_names
|
||||||
final StopSharing = stopSharingC.asFunction<VoidFromStringStringFn>();
|
final StopSharing = stopSharingC.asFunction<VoidFromStringStringFn>();
|
||||||
final utf8profile = profile.toNativeUtf8();
|
final utf8profile = profile.toNativeUtf8();
|
||||||
|
|
|
@ -51,7 +51,7 @@ class _FileSharingViewState extends State<FileSharingView> {
|
||||||
semanticChildCount: sharedFiles.length,
|
semanticChildCount: sharedFiles.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
String filekey = sharedFiles[index]["FileKey"];
|
String filekey = sharedFiles[index]["FileKey"];
|
||||||
EnvironmentConfig.debugLog("$sharedFiles " + sharedFiles[index].toString());
|
//EnvironmentConfig.debugLog("$sharedFiles " + sharedFiles[index].toString());
|
||||||
return SwitchListTile(
|
return SwitchListTile(
|
||||||
title: Text(sharedFiles[index]["Path"]),
|
title: Text(sharedFiles[index]["Path"]),
|
||||||
subtitle: Text(sharedFiles[index]["DateShared"]),
|
subtitle: Text(sharedFiles[index]["DateShared"]),
|
||||||
|
|
Loading…
Reference in New Issue