From f7ecc28a269a819fe3ecf4610b4bce15603a5293 Mon Sep 17 00:00:00 2001 From: Danny Date: Tue, 2 Jan 2018 14:57:30 +0100 Subject: [PATCH] fix references in qt_test --- rai/qt_test/qt.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rai/qt_test/qt.cpp b/rai/qt_test/qt.cpp index 3f15c9f0..69dfda86 100644 --- a/rai/qt_test/qt.cpp +++ b/rai/qt_test/qt.cpp @@ -211,10 +211,9 @@ TEST (wallet, enter_password) auto wallet (std::make_shared (*test_application, processor, *system.nodes [0], system.wallet (0), account)); wallet->start (); ASSERT_NE (-1, wallet->settings.layout->indexOf (wallet->settings.password)); - ASSERT_NE (-1, wallet->settings.lock_layout->indexOf (wallet->settings.unlock)); - ASSERT_NE (-1, wallet->settings.lock_layout->indexOf (wallet->settings.lock)); + ASSERT_NE (-1, wallet->settings.layout->indexOf (wallet->settings.lock_toggle)); ASSERT_NE (-1, wallet->settings.layout->indexOf (wallet->settings.back)); - QTest::mouseClick (wallet->settings.unlock, Qt::LeftButton); + QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton); test_application->processEvents(); ASSERT_EQ ("Status: Wallet password empty", wallet->status->text ()); { @@ -223,12 +222,12 @@ TEST (wallet, enter_password) } QTest::mouseClick (wallet->settings_button, Qt::LeftButton); QTest::keyClicks (wallet->settings.new_password, "a"); - QTest::mouseClick (wallet->settings.unlock, Qt::LeftButton); + QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton); test_application->processEvents(); ASSERT_EQ ("Status: Wallet locked", wallet->status->text ()); wallet->settings.new_password->setText (""); QTest::keyClicks (wallet->settings.password, "abc"); - QTest::mouseClick (wallet->settings.unlock, Qt::LeftButton); + QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton); test_application->processEvents(); auto status (wallet->status->text ()); ASSERT_EQ ("Status: Running", status);