2024-06-21 10:55:07 +00:00
|
|
|
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';
|
|
|
|
|
2024-06-24 12:03:28 +00:00
|
|
|
import '../components/common_checks.dart';
|
2024-06-28 14:03:00 +00:00
|
|
|
import 'pin_code_widget_robot.dart';
|
2024-06-21 10:55:07 +00:00
|
|
|
|
2024-06-28 14:03:00 +00:00
|
|
|
class SetupPinCodeRobot extends PinCodeWidgetRobot {
|
|
|
|
SetupPinCodeRobot(this.tester)
|
|
|
|
: commonTestCases = CommonTestCases(tester),
|
|
|
|
super(tester);
|
2024-06-21 10:55:07 +00:00
|
|
|
|
|
|
|
final WidgetTester tester;
|
|
|
|
late CommonTestCases commonTestCases;
|
|
|
|
|
|
|
|
Future<void> isSetupPinCodePage() async {
|
|
|
|
await commonTestCases.isSpecificPage<SetupPinCodePage>();
|
|
|
|
}
|
|
|
|
|
|
|
|
void hasTitle() {
|
|
|
|
commonTestCases.hasText(S.current.setup_pin);
|
|
|
|
}
|
|
|
|
|
2024-06-24 12:03:28 +00:00
|
|
|
Future<void> tapSuccessButton() async {
|
|
|
|
await commonTestCases.tapItemByKey('setup_pin_code_success_button_key');
|
2024-06-25 17:12:38 +00:00
|
|
|
await commonTestCases.defaultSleepTime();
|
2024-06-21 10:55:07 +00:00
|
|
|
}
|
|
|
|
}
|