Skip to content

Instantly share code, notes, and snippets.

@BouweCeunen
Created July 19, 2020 14:31
Show Gist options
  • Save BouweCeunen/b11c970124d9818f786fae25354aff6f to your computer and use it in GitHub Desktop.
Save BouweCeunen/b11c970124d9818f786fae25354aff6f to your computer and use it in GitHub Desktop.
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart';
import 'package:screenshots/screenshots.dart';
void main() {
group('Integration Tests', () {
final config = Config();
FlutterDriver driver;
setUpAll(() async {
driver = await FlutterDriver.connect();
});
tearDownAll(() async {
if (driver != null) {
driver.close();
}
});
test('has default message', () async {
expect(await driver.getText(find.byValueKey(Keys.emptyListText)), 'Empty List');
await screenshot(driver, config, 'screenshot');
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment