use regex for commands

This commit is contained in:
Salvatore Giordano
2020-03-04 12:06:32 +01:00
parent 76e5a9db8b
commit c37ed34802
3 changed files with 8 additions and 7 deletions
@@ -12,21 +12,21 @@ void main() {
FlutterDriver driver = await FlutterDriver.connect();
// Connect to the Flutter driver before running any tests.
await sleep(Duration(seconds: 5));
sleep(Duration(seconds: 5));
await driver.waitFor(inputFinder);
await driver.tap(inputFinder);
await sleep(Duration(seconds: 1));
sleep(Duration(seconds: 1));
await driver.enterText('hey');
await sleep(Duration(seconds: 1));
sleep(Duration(seconds: 1));
await driver.tap(sendButtonFinder);
await sleep(Duration(seconds: 1));
sleep(Duration(seconds: 1));
await driver.scroll(
messageListViewFinder,
@@ -35,10 +35,10 @@ void main() {
Duration(seconds: 1),
);
await sleep(Duration(seconds: 1));
sleep(Duration(seconds: 1));
// Close the connection to the driver after the tests have completed.
await sleep(Duration(seconds: 5));
sleep(Duration(seconds: 5));
if (driver != null) {
await driver.close();
}