[fuchsia] Runs stocks driver test on Fuchsia NUCs in devicelab

Also pushes tiles which is needed to host the flutter application on Fuchsia.
This commit is contained in:
Kaushik Iska
2020-02-03 17:55:45 -08:00
committed by GitHub
parent 62fdcb0319
commit acabf9d589
2 changed files with 57 additions and 7 deletions

View File

@@ -16,8 +16,14 @@ void main() {
});
tearDownAll(() async {
if (driver != null)
if (driver != null) {
driver.close();
}
});
test('Stock list is shown', () async {
final SerializableFinder stockList = find.byValueKey('stock-list');
expect(stockList, isNotNull);
});
test('open AAPL stock', () async {
@@ -30,10 +36,12 @@ void main() {
await driver.tap(aaplStockRow);
await Future<void>.delayed(const Duration(milliseconds: 500));
final SerializableFinder stockOption = find.byValueKey('AAPL_symbol_name');
final String symbol = await driver.getText(stockOption, timeout: const Duration(milliseconds: 500));
final SerializableFinder stockOption =
find.byValueKey('AAPL_symbol_name');
final String symbol = await driver.getText(stockOption,
timeout: const Duration(milliseconds: 500));
expect(symbol, 'AAPL');
});
}, skip: 'Needs to be fixed on Fuchsia.');
});
}