mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-22 02:34:59 +00:00
3e10023e18
* CI update - use existing build outputs in build_monero_all.sh - update $HOME, fix gh actions - add secrets earlier in the runtime (potentially speed up 'Build generated code' step) - add windows dockerfile - add linux/android dockerfile - update android/linux ci script * [skip slack] [run tests] Run tests on CI, fix tests * [skip slack] [run tests] force enable kvm in android * [skip slack] [run tests] remove inexisting flag * [run tests] [skip slack] update tests * add extra dependencies [skip ci] * [skip slack] [run tests] Add secrets * [skip slack] [run tests] Timeout test cases, continue on error * [skip slack] [run tests] Xvfb fix, timeout fix * [skip slack] [run tests] Start dbus to clean up the logs, use SIGKILL * [skip slack] [run tests] Enable network manager * [skip slack] [run tests] Screen record test, resize screen * [skip slack] [run tests] Improve status report for tests * [skip slack] [run tests] Increase framerate * [skip slack] [run tests] Remove test that I am unable to fix locally easily from CI * [skip slack] [run tests] Simplify ffmpeg command * [skip slack] [run tests] Increase timeout, add comment * [skip slack] Update dockerfile, migrate from mrcyjanek to cake-tech for the ghcr org * Update lib/entities/default_settings_migration.dart Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com> --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
65 lines
2.2 KiB
Dart
65 lines
2.2 KiB
Dart
import 'package:cake_wallet/generated/i18n.dart';
|
|
import 'package:cake_wallet/src/screens/seed/wallet_seed_page.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import '../components/common_test_cases.dart';
|
|
|
|
class WalletSeedPageRobot {
|
|
WalletSeedPageRobot(this.tester) : commonTestCases = CommonTestCases(tester);
|
|
|
|
final WidgetTester tester;
|
|
late CommonTestCases commonTestCases;
|
|
|
|
Future<void> isWalletSeedPage() async {
|
|
await commonTestCases.isSpecificPage<WalletSeedPage>();
|
|
}
|
|
|
|
Future<void> onSeedPageVerifyButtonPressed() async {
|
|
await commonTestCases.tapItemByKey('wallet_seed_page_verify_seed_button_key');
|
|
await commonTestCases.defaultSleepTime();
|
|
}
|
|
|
|
Future<void> onOpenWalletButtonPressed() async {
|
|
await commonTestCases.tapItemByKey('wallet_seed_page_open_wallet_button_key');
|
|
await commonTestCases.defaultSleepTime();
|
|
}
|
|
|
|
Future<void> onConfirmButtonOnSeedAlertDialogPressed() async {
|
|
await commonTestCases.tapItemByKey('wallet_seed_page_seed_alert_confirm_button_key');
|
|
await commonTestCases.defaultSleepTime();
|
|
}
|
|
|
|
Future<void> onBackButtonOnSeedAlertDialogPressed() async {
|
|
await commonTestCases.tapItemByKey('wallet_seed_page_seed_alert_back_button_key');
|
|
await commonTestCases.defaultSleepTime();
|
|
}
|
|
|
|
void confirmWalletDetailsDisplayCorrectly() {
|
|
final walletSeedPage = tester.widget<WalletSeedPage>(find.byType(WalletSeedPage));
|
|
|
|
final walletSeedViewModel = walletSeedPage.walletSeedViewModel;
|
|
|
|
final walletName = walletSeedViewModel.name;
|
|
final walletSeeds = walletSeedViewModel.seed;
|
|
|
|
commonTestCases.hasText(walletName);
|
|
final seedList = walletSeeds.trim().split(" ");
|
|
for (final seedWord in seedList) {
|
|
commonTestCases.hasTextAtLestOnce(seedWord);
|
|
}
|
|
}
|
|
|
|
void confirmWalletSeedReminderDisplays() {
|
|
commonTestCases.hasText(S.current.cake_seeds_save_disclaimer);
|
|
}
|
|
|
|
Future<void> onSaveSeedsButtonPressed() async {
|
|
await commonTestCases.tapItemByKey('wallet_seed_page_save_seeds_button_key');
|
|
await commonTestCases.defaultSleepTime();
|
|
}
|
|
|
|
Future<void> onCopySeedsButtonPressed() async {
|
|
await commonTestCases.tapItemByKey('wallet_seed_page_copy_seeds_button_key');
|
|
await commonTestCases.defaultSleepTime();
|
|
}
|
|
}
|