mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
28 lines
789 B
Dart
28 lines
789 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:stackwallet/pages/address_book_view/address_book_view.dart';
|
|
|
|
class AddressBookViewBot {
|
|
final WidgetTester tester;
|
|
|
|
const AddressBookViewBot(this.tester);
|
|
|
|
Future<void> ensureVisible() async {
|
|
await tester.ensureVisible(find.byType(AddressBookView));
|
|
}
|
|
|
|
Future<void> tapBack() async {
|
|
await tester.tap(find.byKey(Key("addressBookBackButton")));
|
|
await tester.pumpAndSettle();
|
|
}
|
|
|
|
Future<void> tapAdd() async {
|
|
await tester.tap(find.byKey(Key("addressBookAddButton")));
|
|
await tester.pumpAndSettle();
|
|
}
|
|
|
|
Future<void> enterQuery(String query) async {
|
|
await tester.enterText(find.byType(TextField), query);
|
|
await tester.pumpAndSettle();
|
|
}
|
|
}
|