import "package:hash_wallet/generated/i18n.dart"; import "package:hash_wallet/src/screens/seed/wallet_seed_page.dart"; import "package:flutter_test/flutter_test.dart"; import "../core/base_robot.dart"; class WalletSeedPageRobot extends BaseRobot { WalletSeedPageRobot(super.tester); @override Future isDisplayed() async { await isSpecificPage(); } Future onVerifySeedButtonPressed() async { await tapByKey("wallet_seed_page_verify_seed_button_key"); } void confirmWalletDetailsDisplayCorrectly() { final walletSeedPage = tester.widget(find.byType(WalletSeedPage)); final walletSeedViewModel = walletSeedPage.walletSeedViewModel; final walletName = walletSeedViewModel.name; final walletSeeds = walletSeedViewModel.seedSplit; hasText(walletName); for (var index = 0; index < walletSeeds.length; index++) { expect( tester.any(find.text(walletSeeds[index])), true, reason: "The seed page did not show seed word ${index + 1}", ); } } void confirmWalletSeedReminderDisplays() { hasText(S.current.cake_seeds_save_disclaimer); } }