From ea5667fcde2320848a73964c8e9fe8f11f5cb5e7 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 3 Apr 2020 11:55:18 +0200 Subject: [PATCH] Screenshots: Add another note --- test_driver/main_test.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test_driver/main_test.dart b/test_driver/main_test.dart index 3296f67e..26817b16 100644 --- a/test_driver/main_test.dart +++ b/test_driver/main_test.dart @@ -106,6 +106,19 @@ void main() { await Future.delayed(const Duration(milliseconds: 100)); await _takeScreenshot(); + // Create yet another note + await driver.waitFor(fab, timeout: const Duration(seconds: 2)); + await driver.tap(fab); + await driver.waitFor(find.text('Write here'), + timeout: const Duration(seconds: 5)); + + await driver.enterText("Is this real life?"); + await _takeScreenshot(); + await driver.tap(find.byValueKey("NewEntry")); + + await Future.delayed(const Duration(milliseconds: 100)); + await _takeScreenshot(); + // Folder View Selector print("Taking Screenshots of FolderViewSelector"); var folderViewSelector = find.byValueKey("FolderViewSelector");