Skip to content

Instantly share code, notes, and snippets.

@salihgueler
Created January 6, 2019 16:19
Show Gist options
  • Save salihgueler/0ef01a7b5192b7a68d6d241ea0b43234 to your computer and use it in GitHub Desktop.
Save salihgueler/0ef01a7b5192b7a68d6d241ea0b43234 to your computer and use it in GitHub Desktop.
Testing
// Imports the Flutter Driver API
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart';
void main() {
group('scrolling performance test', ()
{
FlutterDriver driver;
setUpAll(() async {
driver = await FlutterDriver.connect();
});
tearDownAll(() async {
if (driver != null) {
driver.close();
}
});
test("Click list item in the list test", () async {
await driver.tap(find.text("Dilwale Dulhania Le Jayenge"));
await driver.waitFor(find.text("Raj is a rich, carefree, happy-go-lucky second generation NRI. Simran is the daughter of Chaudhary Baldev Singh, who in spite of being an NRI is very strict about adherence to Indian values. Simran has left for India to be married to her childhood fiancé. Raj leaves for India with a mission at his hands, to claim his lady love under the noses of her whole family. Thus begins a saga."));
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment