stack_wallet/integration_test/bots/transaction/transaction_search_view_bot.dart
2022-08-26 16:11:35 +08:00

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();
}
}