Skip to content

Instantly share code, notes, and snippets.

@ookami-kb
Created June 15, 2020 16:39
Show Gist options
  • Select an option

  • Save ookami-kb/31eb8876f9623b4e914c4b6bea31938a to your computer and use it in GitHub Desktop.

Select an option

Save ookami-kb/31eb8876f9623b4e914c4b6bea31938a to your computer and use it in GitHub Desktop.
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