Created
June 15, 2020 16:39
-
-
Save ookami-kb/31eb8876f9623b4e914c4b6bea31938a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:io'; | |
| import 'package:flutter_driver/flutter_driver.dart'; | |
| import 'package:test/test.dart'; | |
| import 'app_test_resources.dart'; | |
| void main() { | |
| group('Smoke tests', () { | |
| FlutterDriver driver; | |
| // Connect to the Flutter driver before running any tests. | |
| setUpAll(() async { | |
| driver = await FlutterDriver.connect(); | |
| await Directory('screenshots').create(); | |
| }); | |
| // Close the connection to the driver after the tests have completed. | |
| tearDownAll(() async { | |
| if (driver != null) { | |
| await driver.close(); | |
| } | |
| }); | |
| test('Commander Walkthrough', () async { | |
| await loginToCommander(driver); | |
| await goToMessages(driver); | |
| await goToTasks(driver); | |
| await goToProfile(driver); | |
| await goToRooms(driver); | |
| }, timeout: const Timeout(Duration(minutes: 1))); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment