| 1 | import 'package:cake_wallet/src/screens/send/transaction_success_info_page.dart'; |
| 2 | import 'package:flutter_test/flutter_test.dart'; |
| 3 | |
| 4 | import '../components/common_test_cases.dart'; |
| 5 | |
| 6 | class TransactionSuccessInfoRobot { |
| 7 | TransactionSuccessInfoRobot(this.tester) : commonTestCases = CommonTestCases(tester); |
| 8 | |
| 9 | final WidgetTester tester; |
| 10 | late CommonTestCases commonTestCases; |
| 11 | |
| 12 | Future<void> isTransactionSuccessInfoPage() async { |
| 13 | await commonTestCases.isSpecificPage<TransactionSuccessPage>(); |
| 14 | await commonTestCases.takeScreenshots('transaction_success_info_page'); |
| 15 | } |
| 16 | |
| 17 | Future<void> onConfirmButtonPressed() async { |
| 18 | await commonTestCases.tapItemByKey('transaction_success_info_page_button_key'); |
| 19 | await commonTestCases.defaultSleepTime(); |
| 20 | } |
| 21 | } |