mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
24 lines
743 B
Dart
24 lines
743 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:stackwallet/pages/transaction_subviews/transaction_search_view.dart';
|
|
import 'package:stackwallet/widgets/custom_buttons/simple_button.dart';
|
|
|
|
class TransactionSearchViewBot {
|
|
final WidgetTester tester;
|
|
|
|
const TransactionSearchViewBot(this.tester);
|
|
|
|
Future<void> ensureVisible() async {
|
|
await tester.ensureVisible(find.byType(TransactionSearchView));
|
|
}
|
|
|
|
Future<void> tapX() async {
|
|
await tester.tap(find.byKey(Key("cancelTransactionSearchAppBarButton")));
|
|
await tester.pumpAndSettle();
|
|
}
|
|
|
|
Future<void> tapCancel() async {
|
|
await tester.tap(find.byType(SimpleButton));
|
|
await tester.pumpAndSettle();
|
|
}
|
|
}
|