mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
42 lines
1.4 KiB
Dart
42 lines
1.4 KiB
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
import 'package:integration_test/integration_test.dart';
|
||
|
|
||
|
import '../components/common_test_constants.dart';
|
||
|
import '../components/common_test_flows.dart';
|
||
|
import '../robots/dashboard_page_robot.dart';
|
||
|
import '../robots/send_page_robot.dart';
|
||
|
|
||
|
void main() {
|
||
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||
|
|
||
|
SendPageRobot sendPageRobot;
|
||
|
CommonTestFlows commonTestFlows;
|
||
|
DashboardPageRobot dashboardPageRobot;
|
||
|
|
||
|
group('Send Flow Tests', () {
|
||
|
testWidgets('Send flow', (tester) async {
|
||
|
commonTestFlows = CommonTestFlows(tester);
|
||
|
sendPageRobot = SendPageRobot(tester: tester);
|
||
|
dashboardPageRobot = DashboardPageRobot(tester);
|
||
|
|
||
|
await commonTestFlows.startAppFlow(ValueKey('send_test_app_key'));
|
||
|
await commonTestFlows.restoreWalletThroughSeedsFlow();
|
||
|
await dashboardPageRobot.navigateToSendPage();
|
||
|
|
||
|
await sendPageRobot.enterReceiveAddress(CommonTestConstants.testWalletAddress);
|
||
|
await sendPageRobot.selectReceiveCurrency(CommonTestConstants.testReceiveCurrency);
|
||
|
await sendPageRobot.enterAmount(CommonTestConstants.sendTestAmount);
|
||
|
await sendPageRobot.selectTransactionPriority();
|
||
|
|
||
|
await sendPageRobot.onSendButtonPressed();
|
||
|
|
||
|
await sendPageRobot.handleSendResult();
|
||
|
|
||
|
await sendPageRobot.onSendButtonOnConfirmSendingDialogPressed();
|
||
|
|
||
|
await sendPageRobot.onSentDialogPopUp();
|
||
|
});
|
||
|
});
|
||
|
}
|