Created
July 19, 2020 14:31
-
-
Save BouweCeunen/b11c970124d9818f786fae25354aff6f to your computer and use it in GitHub Desktop.
This file contains 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 '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