rename package folders

This commit is contained in:
Salvatore Giordano
2021-02-01 15:45:58 +01:00
parent 6682ad5e8b
commit 964a428f2e
445 changed files with 1 additions and 343 deletions
@@ -0,0 +1,9 @@
import 'package:flutter_driver/driver_extension.dart';
import '../lib/single_conversation.dart' as app;
void main() async {
enableFlutterDriverExtension();
await app.main();
}
@@ -0,0 +1,46 @@
import 'dart:io';
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart';
void main() {
test('Single conversation', () async {
final inputFinder = find.byValueKey('messageInputText');
final sendButtonFinder = find.byValueKey('sendButton');
final messageListViewFinder = find.byValueKey('messageListView');
FlutterDriver driver = await FlutterDriver.connect();
// Connect to the Flutter driver before running any tests.
sleep(Duration(seconds: 5));
await driver.waitFor(inputFinder);
await driver.tap(inputFinder);
sleep(Duration(seconds: 1));
await driver.enterText('hey');
sleep(Duration(seconds: 1));
await driver.tap(sendButtonFinder);
sleep(Duration(seconds: 1));
await driver.scroll(
messageListViewFinder,
0,
2000,
Duration(seconds: 1),
);
sleep(Duration(seconds: 1));
// Close the connection to the driver after the tests have completed.
sleep(Duration(seconds: 5));
if (driver != null) {
await driver.close();
}
});
}