mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
25 lines
761 B
Dart
25 lines
761 B
Dart
|
import 'package:cake_wallet/generated/i18n.dart';
|
||
|
import 'package:cake_wallet/src/screens/settings/security_backup_page.dart';
|
||
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
|
||
|
import '../components/common_test_cases.dart';
|
||
|
|
||
|
class SecurityAndBackupPageRobot {
|
||
|
SecurityAndBackupPageRobot(this.tester) : commonTestCases = CommonTestCases(tester);
|
||
|
|
||
|
final WidgetTester tester;
|
||
|
final CommonTestCases commonTestCases;
|
||
|
|
||
|
Future<void> isSecurityAndBackupPage() async {
|
||
|
await commonTestCases.isSpecificPage<SecurityBackupPage>();
|
||
|
}
|
||
|
|
||
|
void hasTitle() {
|
||
|
commonTestCases.hasText(S.current.security_and_backup);
|
||
|
}
|
||
|
|
||
|
Future<void> navigateToShowKeysPage() async {
|
||
|
await commonTestCases.tapItemByKey('security_backup_page_show_keys_button_key');
|
||
|
}
|
||
|
}
|