mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
test: Fix wallet tests
This commit is contained in:
parent
7c6cecaf29
commit
79d32b5b9e
@ -3,6 +3,7 @@
|
||||
#include <interface/node.h>
|
||||
#include <qt/bitcoinamountfield.h>
|
||||
#include <qt/callback.h>
|
||||
#include <qt/clientmodel.h>
|
||||
#include <qt/optionsmodel.h>
|
||||
#include <privatesend/privatesend-client.h>
|
||||
#include <qt/qvalidatedlineedit.h>
|
||||
@ -139,6 +140,7 @@ void TestGUI()
|
||||
TransactionView transactionView;
|
||||
auto node = interface::MakeNode();
|
||||
OptionsModel optionsModel(*node);
|
||||
ClientModel clientModel(*node, &optionsModel);
|
||||
WalletModel walletModel(std::move(node->getWallets()[0]), *node, &optionsModel);;
|
||||
sendCoinsDialog.setModel(&walletModel);
|
||||
transactionView.setModel(&walletModel);
|
||||
@ -154,6 +156,7 @@ void TestGUI()
|
||||
|
||||
// Check current balance on OverviewPage
|
||||
OverviewPage overviewPage;
|
||||
overviewPage.setClientModel(&clientModel);
|
||||
overviewPage.setWalletModel(&walletModel);
|
||||
QLabel* balanceLabel = overviewPage.findChild<QLabel*>("labelBalance");
|
||||
QString balanceText = balanceLabel->text();
|
||||
|
Loading…
Reference in New Issue
Block a user