mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
29 lines
850 B
Dart
29 lines
850 B
Dart
|
import 'package:cake_wallet/generated/i18n.dart';
|
||
|
import 'package:cake_wallet/src/screens/setup_pin_code/setup_pin_code.dart';
|
||
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
|
||
|
import '../components/common_test_cases.dart';
|
||
|
import 'pin_code_widget_robot.dart';
|
||
|
|
||
|
class SetupPinCodeRobot extends PinCodeWidgetRobot {
|
||
|
SetupPinCodeRobot(this.tester)
|
||
|
: commonTestCases = CommonTestCases(tester),
|
||
|
super(tester);
|
||
|
|
||
|
final WidgetTester tester;
|
||
|
late CommonTestCases commonTestCases;
|
||
|
|
||
|
Future<void> isSetupPinCodePage() async {
|
||
|
await commonTestCases.isSpecificPage<SetupPinCodePage>();
|
||
|
}
|
||
|
|
||
|
void hasTitle() {
|
||
|
commonTestCases.hasText(S.current.setup_pin);
|
||
|
}
|
||
|
|
||
|
Future<void> tapSuccessButton() async {
|
||
|
await commonTestCases.tapItemByKey('setup_pin_code_success_button_key');
|
||
|
await commonTestCases.defaultSleepTime();
|
||
|
}
|
||
|
}
|