import 'package:hash_wallet/generated/i18n.dart'; import 'package:flutter_test/flutter_test.dart'; import '../components/common_test_cases.dart'; class WalletListPageRobot { WalletListPageRobot(this.tester) : commonTestCases = CommonTestCases(tester); final WidgetTester tester; late CommonTestCases commonTestCases; Future isWalletListPage() async { await commonTestCases.isSpecificPage(); await commonTestCases.takeScreenshots('wallet_list_page'); } void displaysCorrectTitle() { commonTestCases.hasText(S.current.wallets); } Future navigateToCreateNewWalletPage() async { await commonTestCases.tapItemByKey('wallet_list_page_create_new_wallet_button_key'); } Future navigateToRestoreWalletOptionsPage() async { await commonTestCases.tapItemByKey('wallet_list_page_restore_wallet_button_key'); } }