Skip to content

Commit

Permalink
Fix qt tests failing to click radio buttons (nanocurrency#2699)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelawless authored Apr 3, 2020
1 parent adee51c commit cb112f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nano/qt_test/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ TEST (wallet, create_open_receive)
ASSERT_EQ (nano::process_result::old, system.nodes[0]->process (open).code);
wallet->block_creation.block->clear ();
wallet->block_creation.source->clear ();
QTest::mouseClick (wallet->block_creation.receive, Qt::LeftButton);
wallet->block_creation.receive->click ();
QTest::keyClicks (wallet->block_creation.source, latest2.to_string ().c_str ());
QTest::mouseClick (wallet->block_creation.create, Qt::LeftButton);
std::string json2 (wallet->block_creation.block->toPlainText ().toStdString ());
Expand All @@ -447,10 +447,10 @@ TEST (wallet, create_change)
wallet->client_window->show ();
QTest::mouseClick (wallet->show_advanced, Qt::LeftButton);
QTest::mouseClick (wallet->advanced.create_block, Qt::LeftButton);
QTest::mouseClick (wallet->block_creation.change, Qt::LeftButton);
wallet->block_creation.change->click ();
QTest::keyClicks (wallet->block_creation.account, nano::test_genesis_key.pub.to_account ().c_str ());
QTest::keyClicks (wallet->block_creation.representative, key.pub.to_account ().c_str ());
QTest::mouseClick (wallet->block_creation.create, Qt::LeftButton);
wallet->block_creation.create->click ();
std::string json (wallet->block_creation.block->toPlainText ().toStdString ());
ASSERT_FALSE (json.empty ());
boost::property_tree::ptree tree1;
Expand Down

0 comments on commit cb112f7

Please sign in to comment.