@@ -268,6 +268,56 @@ void main() {
268268 }, timeout: Timeout (Duration (seconds: 60 )));
269269 });
270270
271+ group ('Sign And Verify Data' , () {
272+ final parent = find.byKey (ValueKey ("sign-verify-data" ));
273+
274+ testWidgets ('Sign / Verify Data' , (WidgetTester tester) async {
275+ final instance = app.MyApp ();
276+ await tester.pumpWidget (instance);
277+ await tester.pumpAndSettle ();
278+
279+ var container = find.descendant (
280+ of: parent,
281+ matching: find.byKey (ValueKey ("sign" )),
282+ );
283+ await tester.scrollUntilVisible (container, dyScroll, scrollable: list);
284+ await tester.pumpAndSettle ();
285+
286+ await tester.enterText (
287+ find.descendant (
288+ of: container, matching: find.byKey (ValueKey ("message" ))),
289+ input);
290+ await tester.tap (
291+ find.descendant (
292+ of: container, matching: find.byKey (ValueKey ("button" ))),
293+ );
294+ await tester.pumpAndSettle (Duration (seconds: 3 ));
295+ var resultSelector = find.descendant (
296+ of: container, matching: find.byKey (ValueKey ("result" )));
297+ expect (resultSelector, findsOneWidget);
298+ var result = resultSelector.evaluate ().single.widget as Text ;
299+ expect (result.data != "" , equals (true ));
300+
301+ container = find.descendant (
302+ of: parent,
303+ matching: find.byKey (ValueKey ("verify" )),
304+ );
305+ await tester.scrollUntilVisible (container, dyScroll, scrollable: list);
306+ await tester.pumpAndSettle ();
307+
308+ await tester.tap (
309+ find.descendant (
310+ of: container, matching: find.byKey (ValueKey ("button" ))),
311+ );
312+ await tester.pumpAndSettle (Duration (seconds: 3 ));
313+ resultSelector = find.descendant (
314+ of: container, matching: find.byKey (ValueKey ("result" )));
315+ expect (resultSelector, findsOneWidget);
316+ result = resultSelector.evaluate ().single.widget as Text ;
317+ expect (result.data, "VALID" );
318+ }, timeout: Timeout (Duration (seconds: 60 )));
319+ });
320+
271321 group ('Sign And Verify Bytes' , () {
272322 final parent = find.byKey (ValueKey ("sign-verify-bytes" ));
273323
@@ -318,6 +368,56 @@ void main() {
318368 }, timeout: Timeout (Duration (seconds: 60 )));
319369 });
320370
371+ group ('Sign And Verify Data Bytes' , () {
372+ final parent = find.byKey (ValueKey ("sign-verify-data-bytes" ));
373+
374+ testWidgets ('Sign / Verify Data Bytes' , (WidgetTester tester) async {
375+ final instance = app.MyApp ();
376+ await tester.pumpWidget (instance);
377+ await tester.pumpAndSettle ();
378+
379+ var container = find.descendant (
380+ of: parent,
381+ matching: find.byKey (ValueKey ("sign" )),
382+ );
383+ await tester.scrollUntilVisible (container, dyScroll, scrollable: list);
384+ await tester.pumpAndSettle ();
385+
386+ await tester.enterText (
387+ find.descendant (
388+ of: container, matching: find.byKey (ValueKey ("message" ))),
389+ input);
390+ await tester.tap (
391+ find.descendant (
392+ of: container, matching: find.byKey (ValueKey ("button" ))),
393+ );
394+ await tester.pumpAndSettle (Duration (seconds: 3 ));
395+ var resultSelector = find.descendant (
396+ of: container, matching: find.byKey (ValueKey ("result" )));
397+ expect (resultSelector, findsOneWidget);
398+ var result = resultSelector.evaluate ().single.widget as Text ;
399+ expect (result.data != "" , equals (true ));
400+
401+ container = find.descendant (
402+ of: parent,
403+ matching: find.byKey (ValueKey ("verify" )),
404+ );
405+ await tester.scrollUntilVisible (container, dyScroll, scrollable: list);
406+ await tester.pumpAndSettle ();
407+
408+ await tester.tap (
409+ find.descendant (
410+ of: container, matching: find.byKey (ValueKey ("button" ))),
411+ );
412+ await tester.pumpAndSettle (Duration (seconds: 3 ));
413+ resultSelector = find.descendant (
414+ of: container, matching: find.byKey (ValueKey ("result" )));
415+ expect (resultSelector, findsOneWidget);
416+ result = resultSelector.evaluate ().single.widget as Text ;
417+ expect (result.data, "VALID" );
418+ }, timeout: Timeout (Duration (seconds: 60 )));
419+ });
420+
321421 group ('Generate' , () {
322422 final parent = find.byKey (ValueKey ("generate" ));
323423
0 commit comments