Introduce Qml Test Bridge #503

Manually merged
johnny9 merged 16 commits from test-bridge into qt6 2026-03-03 21:57:13 +00:00 AGit
johnny9 commented 2026-02-19 06:24:08 +00:00 (Migrated from github.com)

Adds a build config to compile in a json rpc server that can be used to query the QML engine tree and send click events to it. Python driver and harness are added as well as two basic tests. qml_test_bridge_sanity.py does a basic test against the test-bridge and qml_test_onboard.py does a basic click through of the onboard views.

Related to #506

Adds a build config to compile in a json rpc server that can be used to query the QML engine tree and send click events to it. Python driver and harness are added as well as two basic tests. qml_test_bridge_sanity.py does a basic test against the test-bridge and qml_test_onboard.py does a basic click through of the onboard views. Related to #506
D33r-Gee commented 2026-02-25 19:14:42 +00:00 (Migrated from github.com)

tested 0dc632a getting some build errors

Followed the instructions in doc/test-bridge.md

Built with

cmake -B build -DENABLE_TEST_AUTOMATION=ON
cmake --build build -j$(nproc)
Build Errors
...
[ 94%] Building CXX object CMakeFiles/bitcoinqml.dir/qml/test/testbridge.cpp.o
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘void TestBridge::handleNewConnection()’:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:53:9: error: ‘m_read_buffers’ was not declared in this scope; did you mean ‘m_read_buffer’?
   53 |         m_read_buffers.insert(client, QByteArray{});
      |         ^~~~~~~~~~~~~~
      |         m_read_buffer
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘void TestBridge::handleClientData()’:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:65:31: error: ‘m_read_buffers’ was not declared in this scope; did you mean ‘m_read_buffer’?
   65 |     QByteArray& read_buffer = m_read_buffers[client];
      |                               ^~~~~~~~~~~~~~
      |                               m_read_buffer
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘void TestBridge::handleClientDisconnected()’:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:92:5: error: ‘m_read_buffers’ was not declared in this scope; did you mean ‘m_read_buffer’?
   92 |     m_read_buffers.remove(client);
      |     ^~~~~~~~~~~~~~
      |     m_read_buffer
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: At global scope:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:65: error: ‘NamedObjectEntry’ was not declared in this scope
  119 | void TestBridge::collectNamedObjects(QObject* root, std::vector<NamedObjectEntry>& results, QSet<const QObject*>& visited, int depth) const
      |                                                                 ^~~~~~~~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:81: error: template argument 1 is invalid
  119 | void TestBridge::collectNamedObjects(QObject* root, std::vector<NamedObjectEntry>& results, QSet<const QObject*>& visited, int depth) const
      |                                                                                 ^
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:81: error: template argument 2 is invalid
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:6: error: no declaration matches ‘void TestBridge::collectNamedObjects(QObject*, int&, QSet<const QObject*>&, int) const’
  119 | void TestBridge::collectNamedObjects(QObject* root, std::vector<NamedObjectEntry>& results, QSet<const QObject*>& visited, int depth) const
      |      ^~~~~~~~~~
In file included from /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:5:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:48:10: note: candidate is: ‘void TestBridge::collectNamedObjects(QObject*, std::vector<std::pair<QString, QString> >&) const’
   48 |     void collectNamedObjects(QObject* root, std::vector<std::pair<QString, QString>>& results) const;
      |          ^~~~~~~~~~~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:28:7: note: ‘class TestBridge’ defined here
   28 | class TestBridge : public QObject
      |       ^~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘QByteArray TestBridge::processCommand(const QByteArray&)’:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:172:16: error: ‘cmdWaitForProperty’ was not declared in this scope; did you mean ‘cmdGetProperty’?
  172 |         return cmdWaitForProperty(
      |                ^~~~~~~~~~~~~~~~~~
      |                cmdGetProperty
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:183:16: error: ‘cmdSaveScreenshot’ was not declared in this scope
  183 |         return cmdSaveScreenshot(obj.value(QStringLiteral("path")).toString());
      |                ^~~~~~~~~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: At global scope:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:427:12: error: no declaration matches ‘QByteArray TestBridge::cmdWaitForProperty(const QString&, const QString&, int, const QJsonValue&, bool, const QString&, bool)’
  427 | QByteArray TestBridge::cmdWaitForProperty(const QString& object_name, const QString& prop, int timeout_ms, const QJsonValue& expected, bool has_expected, const QString& contains, bool non_empty)
      |            ^~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:427:12: note: no functions named ‘QByteArray TestBridge::cmdWaitForProperty(const QString&, const QString&, int, const QJsonValue&, bool, const QString&, bool)’
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:28:7: note: ‘class TestBridge’ defined here
   28 | class TestBridge : public QObject
      |       ^~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:489:12: error: no declaration matches ‘QByteArray TestBridge::cmdSaveScreenshot(const QString&)’
  489 | QByteArray TestBridge::cmdSaveScreenshot(const QString& path)
      |            ^~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:489:12: note: no functions named ‘QByteArray TestBridge::cmdSaveScreenshot(const QString&)’
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:28:7: note: ‘class TestBridge’ defined here
   28 | class TestBridge : public QObject
      |       ^~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘QByteArray TestBridge::cmdListObjects()’:
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:528:17: error: ‘NamedObjectEntry’ was not declared in this scope
  528 |     std::vector<NamedObjectEntry> objects;
      |                 ^~~~~~~~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:528:33: error: template argument 1 is invalid
  528 |     std::vector<NamedObjectEntry> objects;
      |                                 ^
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:528:33: error: template argument 2 is invalid
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:531:28: error: no matching function for call to ‘TestBridge::collectNamedObjects(QObject*&, int&, QSet<const QObject*>&, int)’
  531 |         collectNamedObjects(root, objects, visited, 0);
      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:48:10: note: candidate: ‘void TestBridge::collectNamedObjects(QObject*, std::vector<std::pair<QString, QString> >&) const’
   48 |     void collectNamedObjects(QObject* root, std::vector<std::pair<QString, QString>>& results) const;
      |          ^~~~~~~~~~~~~~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:48:10: note:   candidate expects 2 arguments, 4 provided
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: error: ‘begin’ was not declared in this scope
  535 |     for (const auto& obj_entry : objects) {
      |                                  ^~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: note: suggested alternatives:
In file included from /usr/include/c++/13/unordered_map:42,
                 from /usr/include/c++/13/functional:63,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:9,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qstring.h:14,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:11,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qiodevice.h:10,
                 from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qabstractsocket.h:14,
                 from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qlocalserver.h:8,
                 from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/QLocalServer:1,
                 from /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:8:
/usr/include/c++/13/bits/range_access.h:114:37: note:   ‘std::begin’
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
In file included from /usr/include/c++/13/bits/ranges_util.h:34,
                 from /usr/include/c++/13/tuple:44,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qtypeinfo.h:9,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:1397,
                 from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qtnetworkglobal.h:7,
                 from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qlocalserver.h:7:
/usr/include/c++/13/bits/ranges_base.h:489:44: note:   ‘std::ranges::__cust::begin’
  489 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
In file included from /usr/include/c++/13/bits/stl_iterator_base_types.h:71,
                 from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66,
                 from /usr/include/c++/13/variant:43,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qtypeinfo.h:7:
/usr/include/c++/13/bits/iterator_concepts.h:984:10: note:   ‘std::ranges::__cust_access::begin’
  984 |     void begin(const auto&) = delete;
      |          ^~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: error: ‘end’ was not declared in this scope
  535 |     for (const auto& obj_entry : objects) {
      |                                  ^~~~~~~
/home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: note: suggested alternatives:
/usr/include/c++/13/bits/range_access.h:116:37: note:   ‘std::end’
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/c++/13/bits/ranges_base.h:490:42: note:   ‘std::ranges::__cust::end’
  490 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
/usr/include/c++/13/bits/ranges_base.h:137:10: note:   ‘std::ranges::__cust_access::end’
  137 |     void end(const auto&) = delete;
      |          ^~~
gmake[2]: *** [CMakeFiles/bitcoinqml.dir/build.make:531: CMakeFiles/bitcoinqml.dir/qml/test/testbridge.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:328: CMakeFiles/bitcoinqml.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

The llms say that:

The TestBridge (qml/test/testbridge.h) class is failing to compile due to a significant mismatch between the header and the implementation.

tested [0dc632a](https://github.com/bitcoin-core/gui-qml/pull/503/commits/0dc632a39b0f9bdc2c987bb25911d745e5e4e7b0) getting some build errors Followed the instructions in doc/test-bridge.md Built with ``` cmake -B build -DENABLE_TEST_AUTOMATION=ON cmake --build build -j$(nproc) ``` <details> <summary>Build Errors</summary> ``` ... [ 94%] Building CXX object CMakeFiles/bitcoinqml.dir/qml/test/testbridge.cpp.o /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘void TestBridge::handleNewConnection()’: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:53:9: error: ‘m_read_buffers’ was not declared in this scope; did you mean ‘m_read_buffer’? 53 | m_read_buffers.insert(client, QByteArray{}); | ^~~~~~~~~~~~~~ | m_read_buffer /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘void TestBridge::handleClientData()’: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:65:31: error: ‘m_read_buffers’ was not declared in this scope; did you mean ‘m_read_buffer’? 65 | QByteArray& read_buffer = m_read_buffers[client]; | ^~~~~~~~~~~~~~ | m_read_buffer /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘void TestBridge::handleClientDisconnected()’: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:92:5: error: ‘m_read_buffers’ was not declared in this scope; did you mean ‘m_read_buffer’? 92 | m_read_buffers.remove(client); | ^~~~~~~~~~~~~~ | m_read_buffer /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: At global scope: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:65: error: ‘NamedObjectEntry’ was not declared in this scope 119 | void TestBridge::collectNamedObjects(QObject* root, std::vector<NamedObjectEntry>& results, QSet<const QObject*>& visited, int depth) const | ^~~~~~~~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:81: error: template argument 1 is invalid 119 | void TestBridge::collectNamedObjects(QObject* root, std::vector<NamedObjectEntry>& results, QSet<const QObject*>& visited, int depth) const | ^ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:81: error: template argument 2 is invalid /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:119:6: error: no declaration matches ‘void TestBridge::collectNamedObjects(QObject*, int&, QSet<const QObject*>&, int) const’ 119 | void TestBridge::collectNamedObjects(QObject* root, std::vector<NamedObjectEntry>& results, QSet<const QObject*>& visited, int depth) const | ^~~~~~~~~~ In file included from /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:5: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:48:10: note: candidate is: ‘void TestBridge::collectNamedObjects(QObject*, std::vector<std::pair<QString, QString> >&) const’ 48 | void collectNamedObjects(QObject* root, std::vector<std::pair<QString, QString>>& results) const; | ^~~~~~~~~~~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:28:7: note: ‘class TestBridge’ defined here 28 | class TestBridge : public QObject | ^~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘QByteArray TestBridge::processCommand(const QByteArray&)’: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:172:16: error: ‘cmdWaitForProperty’ was not declared in this scope; did you mean ‘cmdGetProperty’? 172 | return cmdWaitForProperty( | ^~~~~~~~~~~~~~~~~~ | cmdGetProperty /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:183:16: error: ‘cmdSaveScreenshot’ was not declared in this scope 183 | return cmdSaveScreenshot(obj.value(QStringLiteral("path")).toString()); | ^~~~~~~~~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: At global scope: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:427:12: error: no declaration matches ‘QByteArray TestBridge::cmdWaitForProperty(const QString&, const QString&, int, const QJsonValue&, bool, const QString&, bool)’ 427 | QByteArray TestBridge::cmdWaitForProperty(const QString& object_name, const QString& prop, int timeout_ms, const QJsonValue& expected, bool has_expected, const QString& contains, bool non_empty) | ^~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:427:12: note: no functions named ‘QByteArray TestBridge::cmdWaitForProperty(const QString&, const QString&, int, const QJsonValue&, bool, const QString&, bool)’ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:28:7: note: ‘class TestBridge’ defined here 28 | class TestBridge : public QObject | ^~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:489:12: error: no declaration matches ‘QByteArray TestBridge::cmdSaveScreenshot(const QString&)’ 489 | QByteArray TestBridge::cmdSaveScreenshot(const QString& path) | ^~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:489:12: note: no functions named ‘QByteArray TestBridge::cmdSaveScreenshot(const QString&)’ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:28:7: note: ‘class TestBridge’ defined here 28 | class TestBridge : public QObject | ^~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp: In member function ‘QByteArray TestBridge::cmdListObjects()’: /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:528:17: error: ‘NamedObjectEntry’ was not declared in this scope 528 | std::vector<NamedObjectEntry> objects; | ^~~~~~~~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:528:33: error: template argument 1 is invalid 528 | std::vector<NamedObjectEntry> objects; | ^ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:528:33: error: template argument 2 is invalid /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:531:28: error: no matching function for call to ‘TestBridge::collectNamedObjects(QObject*&, int&, QSet<const QObject*>&, int)’ 531 | collectNamedObjects(root, objects, visited, 0); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:48:10: note: candidate: ‘void TestBridge::collectNamedObjects(QObject*, std::vector<std::pair<QString, QString> >&) const’ 48 | void collectNamedObjects(QObject* root, std::vector<std::pair<QString, QString>>& results) const; | ^~~~~~~~~~~~~~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:48:10: note: candidate expects 2 arguments, 4 provided /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: error: ‘begin’ was not declared in this scope 535 | for (const auto& obj_entry : objects) { | ^~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: note: suggested alternatives: In file included from /usr/include/c++/13/unordered_map:42, from /usr/include/c++/13/functional:63, from /usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:9, from /usr/include/x86_64-linux-gnu/qt6/QtCore/qstring.h:14, from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:11, from /usr/include/x86_64-linux-gnu/qt6/QtCore/qiodevice.h:10, from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qabstractsocket.h:14, from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qlocalserver.h:8, from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/QLocalServer:1, from /home/user0/d33r.gee/gui-qml/qml/test/testbridge.h:8: /usr/include/c++/13/bits/range_access.h:114:37: note: ‘std::begin’ 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ In file included from /usr/include/c++/13/bits/ranges_util.h:34, from /usr/include/c++/13/tuple:44, from /usr/include/x86_64-linux-gnu/qt6/QtCore/qtypeinfo.h:9, from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:1397, from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qtnetworkglobal.h:7, from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qlocalserver.h:7: /usr/include/c++/13/bits/ranges_base.h:489:44: note: ‘std::ranges::__cust::begin’ 489 | inline constexpr __cust_access::_Begin begin{}; | ^~~~~ In file included from /usr/include/c++/13/bits/stl_iterator_base_types.h:71, from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13/variant:43, from /usr/include/x86_64-linux-gnu/qt6/QtCore/qtypeinfo.h:7: /usr/include/c++/13/bits/iterator_concepts.h:984:10: note: ‘std::ranges::__cust_access::begin’ 984 | void begin(const auto&) = delete; | ^~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: error: ‘end’ was not declared in this scope 535 | for (const auto& obj_entry : objects) { | ^~~~~~~ /home/user0/d33r.gee/gui-qml/qml/test/testbridge.cpp:535:34: note: suggested alternatives: /usr/include/c++/13/bits/range_access.h:116:37: note: ‘std::end’ 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ^~~ /usr/include/c++/13/bits/ranges_base.h:490:42: note: ‘std::ranges::__cust::end’ 490 | inline constexpr __cust_access::_End end{}; | ^~~ /usr/include/c++/13/bits/ranges_base.h:137:10: note: ‘std::ranges::__cust_access::end’ 137 | void end(const auto&) = delete; | ^~~ gmake[2]: *** [CMakeFiles/bitcoinqml.dir/build.make:531: CMakeFiles/bitcoinqml.dir/qml/test/testbridge.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [CMakeFiles/Makefile2:328: CMakeFiles/bitcoinqml.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2 ``` </details> The llms say that: > The TestBridge (qml/test/testbridge.h) class is failing to compile due to a significant mismatch between the header and the implementation.
epicleafies (Migrated from github.com) reviewed 2026-02-25 23:44:56 +00:00
epicleafies (Migrated from github.com) left a comment

Overall looks good, the only large issue is that the testbridge header and cpp file aren't in sync.

Overall looks good, the only large issue is that the testbridge header and cpp file aren't in sync.
epicleafies (Migrated from github.com) commented 2026-02-25 23:36:17 +00:00

Missing includes: QCoreApplication, QEvent, QMouseEvent, QPointF, QSet and QJsonValue.

Missing includes: QCoreApplication, QEvent, QMouseEvent, QPointF, QSet and QJsonValue.
epicleafies (Migrated from github.com) commented 2026-02-25 23:28:02 +00:00

Unused.

Unused.
epicleafies (Migrated from github.com) commented 2026-02-25 23:26:43 +00:00

Unused.

Unused.
epicleafies (Migrated from github.com) commented 2026-02-25 23:27:45 +00:00

Unused, but may want to keep if used instead of msleep.

Unused, but may want to keep if used instead of msleep.
epicleafies (Migrated from github.com) commented 2026-02-25 22:45:48 +00:00

NamedObjectEntry struct is used here but not declared in testbridge.h

NamedObjectEntry struct is used here but not declared in testbridge.h
epicleafies (Migrated from github.com) commented 2026-02-25 22:58:27 +00:00

Says bread-first search when should say depth-first search.

Says bread-first search when should say depth-first search.
epicleafies (Migrated from github.com) commented 2026-02-25 23:04:39 +00:00

Using msleep inside of QLocalSocket::readyRead can cause issues, better to use QEventLoop and QTimer.

Using msleep inside of QLocalSocket::readyRead can cause issues, better to use QEventLoop and QTimer.
epicleafies (Migrated from github.com) commented 2026-02-25 23:04:49 +00:00

Using msleep inside of QLocalSocket::readyRead can cause issues, better to use QEventLoop and QTimer.

Using msleep inside of QLocalSocket::readyRead can cause issues, better to use QEventLoop and QTimer.
epicleafies (Migrated from github.com) commented 2026-02-25 22:50:52 +00:00

This method is not declared in the header file.

This method is not declared in the header file.
epicleafies (Migrated from github.com) commented 2026-02-25 22:50:22 +00:00

This method is not declared in the header file.

This method is not declared in the header file.
epicleafies (Migrated from github.com) commented 2026-02-25 23:26:17 +00:00

Missing QByteArray include.

Missing QByteArray include.
epicleafies (Migrated from github.com) commented 2026-02-25 22:43:06 +00:00

Mismatch with the definition in testbridge.cpp

Mismatch with the definition in testbridge.cpp
epicleafies (Migrated from github.com) commented 2026-02-25 22:49:41 +00:00

The header file names this variable m_read_buffer but the cpp file refers to it as m_read_buffers. Also the cpp file uses it as if its type is QHash<QLocalSocket*, QByteArray> while the header declares it as type QByteArray.

The header file names this variable m_read_buffer but the cpp file refers to it as m_read_buffers. Also the cpp file uses it as if its type is QHash<QLocalSocket*, QByteArray> while the header declares it as type QByteArray.
epicleafies (Migrated from github.com) commented 2026-02-25 23:17:42 +00:00

gui variable is undefined if start() fails.

gui variable is undefined if start() fails.
epicleafies (Migrated from github.com) commented 2026-02-25 23:08:15 +00:00

Temporary directory is never removed.

Temporary directory is never removed.
epicleafies (Migrated from github.com) commented 2026-02-25 23:18:13 +00:00

gui variable is undefined if start() fails.

gui variable is undefined if start() fails.
epicleafies (Migrated from github.com) commented 2026-02-25 23:21:16 +00:00

This may not be enough time on slower machines, better to use gui.wait_for_page().

This may not be enough time on slower machines, better to use gui.wait_for_page().
johnny9 commented 2026-02-26 16:09:25 +00:00 (Migrated from github.com)

Thanks for the reviews. It looks like when I tried merging my updates from my dev branch i missed a chunk.

I have now updated the branch.

In addition, I simplified the page lookup functionality by adding a reference to the main page stack so that its easier for the testbridge to find the current leaf in the stack which should contain the page we are looking for.

Other improvements were to replace the sleep which ended up being in the main gui loop with a timer event loop which is a bit more complicated but doesnt block the main gui thread. A processing_gaurd was also added to make sure another client can't send a command while the wait for property/page is doing its event looping.

Thanks for the reviews. It looks like when I tried merging my updates from my dev branch i missed a chunk. I have now updated the branch. In addition, I simplified the page lookup functionality by adding a reference to the main page stack so that its easier for the testbridge to find the current leaf in the stack which should contain the page we are looking for. Other improvements were to replace the sleep which ended up being in the main gui loop with a timer event loop which is a bit more complicated but doesnt block the main gui thread. A processing_gaurd was also added to make sure another client can't send a command while the wait for property/page is doing its event looping.
D33r-Gee commented 2026-02-26 19:41:47 +00:00 (Migrated from github.com)

tested 001eb6a

Build now works, had to make sure to:
git submodule update --init

python3 test/functional/qml_test_bridge_sanity.py PASSED
Starting GUI: ~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_o4wtws15/node0 -test-automation=/tmp/qml_test_bridge_o4wtws15/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten
QmlDriver connected to test bridge.

Test 1: list_objects
  Found 9 named object(s) in QML tree.
    - ApplicationWindow (QQuickContentItem)
    - QQuickPopupItem (QQuickContentItem)
    - image (QQuickIconImage)
    - mainPageStack (PageStack_QMLTYPE_56)
    - onboardingCover (OnboardingCover_QMLTYPE_169)
    - OnboardingCover (QQuickContentItem)
    - image (QQuickIconImage)
    - InformationPage (QQuickContentItem)
    - onboardingCoverButton (ContinueButton_QMLTYPE_34)
  Found mainPageStack
  PASSED

Test 2: get_current_page
  Current page: onboardingCover
  PASSED

Test 3: get_property
  get_property('ApplicationWindow', 'objectName') = 'ApplicationWindow'
  PASSED

Test 4: error handling for missing object
  Correctly raised error: click('nonExistentObject12345') failed: Object not found: nonExistentObject12345
  PASSED

Test 5: error handling for missing property
  Correctly raised error: get_property('ApplicationWindow', 'completelyFakeProperty999') failed: Property not found: ApplicationWindow.completelyFakeProperty999
  PASSED

Test 6: wait_for_page timeout for non-existent page
  Correctly timed out: wait_for_page('pageDoesNotExist999') failed: Timed out waiting for page: pageDoesNotExist999
  PASSED

==================================================
All tests PASSED
==================================================
python3 test/functional/qml_test_onboarding.py FAILED
Starting GUI:~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_dnd4otxd/node0 -test-automation=/tmp/qml_test_bridge_dnd4otxd/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten
QmlDriver connected to test bridge.
Initial page: onboardingCover
Click onboardingCoverButton ...

FAILED: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen
Traceback (most recent call last):
File "~/d33r-gee/gui-qml/test/functional/qml_test_onboarding.py", line 46, in run_tests
  gui.wait_for_page(expected_page, timeout_ms=5000)
File "~/d33r-gee/gui-qml/test/functional/qml_driver.py", line 118, in wait_for_page
  raise QmlDriverError(
qml_driver.QmlDriverError: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen

--- QML object tree at failure ---
ApplicationWindow (QQuickContentItem)
QQuickPopupItem (QQuickContentItem)
image (QQuickIconImage)
mainPageStack (PageStack_QMLTYPE_56)
onboardingCover (OnboardingCover_QMLTYPE_163)
OnboardingCover (QQuickContentItem)
image (QQuickIconImage)
InformationPage (QQuickContentItem)
onboardingCoverButton (ContinueButton_QMLTYPE_19)
--- 9 objects total ---

The qml_test_onboarding.py also failed with python3 test/functional/qml_test_onboarding.py --socket-path /tmp/test_bridge.sock running the app in regtest mode with -resetguisettings

tested [001eb6a](https://github.com/bitcoin-core/gui-qml/pull/503/commits/001eb6a41c84bfe27a644e14bb63699984d038b7) Build now works, had to make sure to: git submodule update --init <details> <summary>python3 test/functional/qml_test_bridge_sanity.py PASSED</summary> ``` Starting GUI: ~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_o4wtws15/node0 -test-automation=/tmp/qml_test_bridge_o4wtws15/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten QmlDriver connected to test bridge. Test 1: list_objects Found 9 named object(s) in QML tree. - ApplicationWindow (QQuickContentItem) - QQuickPopupItem (QQuickContentItem) - image (QQuickIconImage) - mainPageStack (PageStack_QMLTYPE_56) - onboardingCover (OnboardingCover_QMLTYPE_169) - OnboardingCover (QQuickContentItem) - image (QQuickIconImage) - InformationPage (QQuickContentItem) - onboardingCoverButton (ContinueButton_QMLTYPE_34) Found mainPageStack PASSED Test 2: get_current_page Current page: onboardingCover PASSED Test 3: get_property get_property('ApplicationWindow', 'objectName') = 'ApplicationWindow' PASSED Test 4: error handling for missing object Correctly raised error: click('nonExistentObject12345') failed: Object not found: nonExistentObject12345 PASSED Test 5: error handling for missing property Correctly raised error: get_property('ApplicationWindow', 'completelyFakeProperty999') failed: Property not found: ApplicationWindow.completelyFakeProperty999 PASSED Test 6: wait_for_page timeout for non-existent page Correctly timed out: wait_for_page('pageDoesNotExist999') failed: Timed out waiting for page: pageDoesNotExist999 PASSED ================================================== All tests PASSED ================================================== ``` </details> <details> <summary>python3 test/functional/qml_test_onboarding.py FAILED</summary> ``` Starting GUI:~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_dnd4otxd/node0 -test-automation=/tmp/qml_test_bridge_dnd4otxd/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten QmlDriver connected to test bridge. Initial page: onboardingCover Click onboardingCoverButton ... FAILED: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen Traceback (most recent call last): File "~/d33r-gee/gui-qml/test/functional/qml_test_onboarding.py", line 46, in run_tests gui.wait_for_page(expected_page, timeout_ms=5000) File "~/d33r-gee/gui-qml/test/functional/qml_driver.py", line 118, in wait_for_page raise QmlDriverError( qml_driver.QmlDriverError: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen --- QML object tree at failure --- ApplicationWindow (QQuickContentItem) QQuickPopupItem (QQuickContentItem) image (QQuickIconImage) mainPageStack (PageStack_QMLTYPE_56) onboardingCover (OnboardingCover_QMLTYPE_163) OnboardingCover (QQuickContentItem) image (QQuickIconImage) InformationPage (QQuickContentItem) onboardingCoverButton (ContinueButton_QMLTYPE_19) --- 9 objects total --- ``` </details> The qml_test_onboarding.py also failed with python3 test/functional/qml_test_onboarding.py --socket-path /tmp/test_bridge.sock running the app in regtest mode with -resetguisettings
johnny9 commented 2026-02-26 21:33:53 +00:00 (Migrated from github.com)

tested 001eb6a

Build now works, had to make sure to:
git submodule update --init

python3 test/functional/qml_test_bridge_sanity.py PASSED
Starting GUI: ~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_o4wtws15/node0 -test-automation=/tmp/qml_test_bridge_o4wtws15/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten
QmlDriver connected to test bridge.

Test 1: list_objects
  Found 9 named object(s) in QML tree.
    - ApplicationWindow (QQuickContentItem)
    - QQuickPopupItem (QQuickContentItem)
    - image (QQuickIconImage)
    - mainPageStack (PageStack_QMLTYPE_56)
    - onboardingCover (OnboardingCover_QMLTYPE_169)
    - OnboardingCover (QQuickContentItem)
    - image (QQuickIconImage)
    - InformationPage (QQuickContentItem)
    - onboardingCoverButton (ContinueButton_QMLTYPE_34)
  Found mainPageStack
  PASSED

Test 2: get_current_page
  Current page: onboardingCover
  PASSED

Test 3: get_property
  get_property('ApplicationWindow', 'objectName') = 'ApplicationWindow'
  PASSED

Test 4: error handling for missing object
  Correctly raised error: click('nonExistentObject12345') failed: Object not found: nonExistentObject12345
  PASSED

Test 5: error handling for missing property
  Correctly raised error: get_property('ApplicationWindow', 'completelyFakeProperty999') failed: Property not found: ApplicationWindow.completelyFakeProperty999
  PASSED

Test 6: wait_for_page timeout for non-existent page
  Correctly timed out: wait_for_page('pageDoesNotExist999') failed: Timed out waiting for page: pageDoesNotExist999
  PASSED

==================================================
All tests PASSED
==================================================
python3 test/functional/qml_test_onboarding.py FAILED
Starting GUI:~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_dnd4otxd/node0 -test-automation=/tmp/qml_test_bridge_dnd4otxd/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten
QmlDriver connected to test bridge.
Initial page: onboardingCover
Click onboardingCoverButton ...

FAILED: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen
Traceback (most recent call last):
File "~/d33r-gee/gui-qml/test/functional/qml_test_onboarding.py", line 46, in run_tests
  gui.wait_for_page(expected_page, timeout_ms=5000)
File "~/d33r-gee/gui-qml/test/functional/qml_driver.py", line 118, in wait_for_page
  raise QmlDriverError(
qml_driver.QmlDriverError: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen

--- QML object tree at failure ---
ApplicationWindow (QQuickContentItem)
QQuickPopupItem (QQuickContentItem)
image (QQuickIconImage)
mainPageStack (PageStack_QMLTYPE_56)
onboardingCover (OnboardingCover_QMLTYPE_163)
OnboardingCover (QQuickContentItem)
image (QQuickIconImage)
InformationPage (QQuickContentItem)
onboardingCoverButton (ContinueButton_QMLTYPE_19)
--- 9 objects total ---

The qml_test_onboarding.py also failed with python3 test/functional/qml_test_onboarding.py --socket-path /tmp/test_bridge.sock running the app in regtest mode with -resetguisettings

What platform are you testing with? Linux, Mac, windows?

> tested [001eb6a](https://github.com/bitcoin-core/gui-qml/pull/503/commits/001eb6a41c84bfe27a644e14bb63699984d038b7) > > Build now works, had to make sure to: > git submodule update --init > > <details> > <summary>python3 test/functional/qml_test_bridge_sanity.py PASSED</summary> > > ``` > Starting GUI: ~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_o4wtws15/node0 -test-automation=/tmp/qml_test_bridge_o4wtws15/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten > QmlDriver connected to test bridge. > > Test 1: list_objects > Found 9 named object(s) in QML tree. > - ApplicationWindow (QQuickContentItem) > - QQuickPopupItem (QQuickContentItem) > - image (QQuickIconImage) > - mainPageStack (PageStack_QMLTYPE_56) > - onboardingCover (OnboardingCover_QMLTYPE_169) > - OnboardingCover (QQuickContentItem) > - image (QQuickIconImage) > - InformationPage (QQuickContentItem) > - onboardingCoverButton (ContinueButton_QMLTYPE_34) > Found mainPageStack > PASSED > > Test 2: get_current_page > Current page: onboardingCover > PASSED > > Test 3: get_property > get_property('ApplicationWindow', 'objectName') = 'ApplicationWindow' > PASSED > > Test 4: error handling for missing object > Correctly raised error: click('nonExistentObject12345') failed: Object not found: nonExistentObject12345 > PASSED > > Test 5: error handling for missing property > Correctly raised error: get_property('ApplicationWindow', 'completelyFakeProperty999') failed: Property not found: ApplicationWindow.completelyFakeProperty999 > PASSED > > Test 6: wait_for_page timeout for non-existent page > Correctly timed out: wait_for_page('pageDoesNotExist999') failed: Timed out waiting for page: pageDoesNotExist999 > PASSED > > ================================================== > All tests PASSED > ================================================== > ``` > </details> > > > <details> > <summary>python3 test/functional/qml_test_onboarding.py FAILED</summary> > > ``` > Starting GUI:~/d33r-gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_dnd4otxd/node0 -test-automation=/tmp/qml_test_bridge_dnd4otxd/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten > QmlDriver connected to test bridge. > Initial page: onboardingCover > Click onboardingCoverButton ... > > FAILED: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen > Traceback (most recent call last): > File "~/d33r-gee/gui-qml/test/functional/qml_test_onboarding.py", line 46, in run_tests > gui.wait_for_page(expected_page, timeout_ms=5000) > File "~/d33r-gee/gui-qml/test/functional/qml_driver.py", line 118, in wait_for_page > raise QmlDriverError( > qml_driver.QmlDriverError: wait_for_page('onboardingStrengthen') failed: Timed out waiting for page: onboardingStrengthen > > --- QML object tree at failure --- > ApplicationWindow (QQuickContentItem) > QQuickPopupItem (QQuickContentItem) > image (QQuickIconImage) > mainPageStack (PageStack_QMLTYPE_56) > onboardingCover (OnboardingCover_QMLTYPE_163) > OnboardingCover (QQuickContentItem) > image (QQuickIconImage) > InformationPage (QQuickContentItem) > onboardingCoverButton (ContinueButton_QMLTYPE_19) > --- 9 objects total --- > ``` > </details> > > The qml_test_onboarding.py also failed with python3 test/functional/qml_test_onboarding.py --socket-path /tmp/test_bridge.sock running the app in regtest mode with -resetguisettings What platform are you testing with? Linux, Mac, windows?
johnny9 commented 2026-02-26 21:36:35 +00:00 (Migrated from github.com)

I think I'll probably need to go ahead and create the github work flow for this now also so that we have some sanity with the platform

I think I'll probably need to go ahead and create the github work flow for this now also so that we have some sanity with the platform
D33r-Gee commented 2026-02-26 22:46:41 +00:00 (Migrated from github.com)

What platform are you testing with? Linux, Mac, windows?

this is on WSL Ubuntu 22.04.5 LTS

> What platform are you testing with? Linux, Mac, windows? this is on WSL Ubuntu 22.04.5 LTS
johnny9 commented 2026-02-27 03:01:00 +00:00 (Migrated from github.com)

What platform are you testing with? Linux, Mac, windows?

this is on WSL Ubuntu 22.04.5 LTS

Thanks, it was a regression. I changed around the click function a bit and now the tests should all pass.

> > What platform are you testing with? Linux, Mac, windows? > > this is on WSL Ubuntu 22.04.5 LTS Thanks, it was a regression. I changed around the click function a bit and now the tests should all pass.
D33r-Gee commented 2026-02-27 16:19:50 +00:00 (Migrated from github.com)

tACK fb07db8 on WSL Ubuntu 24.04.3 LTS

It built successfully
Then both test PASSED including using the socket

python3 test/functional/qml_test_bridge_sanity.py
Starting GUI: ~/d33r.gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_gzm93kbh/node0 -test-automation=/tmp/qml_test_bridge_gzm93kbh/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten
QmlDriver connected to test bridge.

Test 1: list_objects
Found 9 named object(s) in QML tree.
  - ApplicationWindow (QQuickContentItem)
  - QQuickPopupItem (QQuickContentItem)
  - image (QQuickIconImage)
  - mainPageStack (PageStack_QMLTYPE_9)
  - onboardingCover (OnboardingCover_QMLTYPE_282)
  - OnboardingCover (QQuickContentItem)
  - image (QQuickIconImage)
  - InformationPage (QQuickContentItem)
  - onboardingCoverButton (ContinueButton_QMLTYPE_17)
Found mainPageStack
PASSED

Test 2: get_current_page
Current page: onboardingCover
PASSED

Test 3: get_property
get_property('ApplicationWindow', 'objectName') = 'ApplicationWindow'
PASSED

Test 4: error handling for missing object
Correctly raised error: click('nonExistentObject12345') failed: Object not found: nonExistentObject12345
PASSED

Test 5: error handling for missing property
Correctly raised error: get_property('ApplicationWindow', 'completelyFakeProperty999') failed: Property not found: ApplicationWindow.completelyFakeProperty999
PASSED

Test 6: wait_for_page timeout for non-existent page
Correctly timed out: wait_for_page('pageDoesNotExist999') failed: Timed out waiting for page: pageDoesNotExist999
PASSED

==================================================
All tests PASSED
==================================================
python3 test/functional/qml_test_onboarding.py
Starting GUI: ~/d33r.gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_st8tv3vg/node0 -test-automation=/tmp/qml_test_bridge_st8tv3vg/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten
QmlDriver connected to test bridge.
Initial page: onboardingCover
Click onboardingCoverButton ...
 -> page: onboardingStrengthen
Click onboardingStrengthenButton ...
 -> page: onboardingBlockclock
Click onboardingBlockclockButton ...
 -> page: onboardingStorageLocation
Click onboardingStorageLocationButton ...
 -> page: onboardingStorageAmount
Click onboardingStorageAmountButton ...
 -> page: onboardingConnection
Click onboardingConnectionButton (finish onboarding) ...
 -> post-onboarding page: Page_QMLTYPE_29

==================================================
All tests PASSED
==================================================
tACK [fb07db8](https://github.com/bitcoin-core/gui-qml/pull/503/commits/fb07db8b07cf7ecd676e43f08c846d8692be3204) on WSL Ubuntu 24.04.3 LTS It built successfully Then both test PASSED including using the socket <details> <summary>python3 test/functional/qml_test_bridge_sanity.py</summary> ``` Starting GUI: ~/d33r.gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_gzm93kbh/node0 -test-automation=/tmp/qml_test_bridge_gzm93kbh/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten QmlDriver connected to test bridge. Test 1: list_objects Found 9 named object(s) in QML tree. - ApplicationWindow (QQuickContentItem) - QQuickPopupItem (QQuickContentItem) - image (QQuickIconImage) - mainPageStack (PageStack_QMLTYPE_9) - onboardingCover (OnboardingCover_QMLTYPE_282) - OnboardingCover (QQuickContentItem) - image (QQuickIconImage) - InformationPage (QQuickContentItem) - onboardingCoverButton (ContinueButton_QMLTYPE_17) Found mainPageStack PASSED Test 2: get_current_page Current page: onboardingCover PASSED Test 3: get_property get_property('ApplicationWindow', 'objectName') = 'ApplicationWindow' PASSED Test 4: error handling for missing object Correctly raised error: click('nonExistentObject12345') failed: Object not found: nonExistentObject12345 PASSED Test 5: error handling for missing property Correctly raised error: get_property('ApplicationWindow', 'completelyFakeProperty999') failed: Property not found: ApplicationWindow.completelyFakeProperty999 PASSED Test 6: wait_for_page timeout for non-existent page Correctly timed out: wait_for_page('pageDoesNotExist999') failed: Timed out waiting for page: pageDoesNotExist999 PASSED ================================================== All tests PASSED ================================================== ``` </details> <details> <summary>python3 test/functional/qml_test_onboarding.py</summary> ``` Starting GUI: ~/d33r.gee/gui-qml/build/bin/bitcoin-core-app -datadir=/tmp/qml_test_bridge_st8tv3vg/node0 -test-automation=/tmp/qml_test_bridge_st8tv3vg/test_bridge.sock -resetguisettings -logtimemicros -debug -debugexclude=libevent -debugexclude=leveldb -nolisten QmlDriver connected to test bridge. Initial page: onboardingCover Click onboardingCoverButton ... -> page: onboardingStrengthen Click onboardingStrengthenButton ... -> page: onboardingBlockclock Click onboardingBlockclockButton ... -> page: onboardingStorageLocation Click onboardingStorageLocationButton ... -> page: onboardingStorageAmount Click onboardingStorageAmountButton ... -> page: onboardingConnection Click onboardingConnectionButton (finish onboarding) ... -> post-onboarding page: Page_QMLTYPE_29 ================================================== All tests PASSED ================================================== ``` </details>
johnny9 commented 2026-02-28 08:59:16 +00:00 (Migrated from github.com)

Fixed the dependencies in the ci workflow

Fixed the dependencies in the ci workflow
johnny9 commented 2026-03-03 17:17:04 +00:00 (Migrated from github.com)

Force pushed the remaining fixes from @epicleafies comments.

Force pushed the remaining fixes from @epicleafies comments.
epicleafies (Migrated from github.com) approved these changes 2026-03-03 19:12:29 +00:00
epicleafies (Migrated from github.com) left a comment

tACK once these three small issues are fixed.

tACK once these three small issues are fixed.
epicleafies (Migrated from github.com) commented 2026-03-03 19:11:37 +00:00

If toggle() succeeds but invoking clicked() returns false the method still returns ok: true, these should be tracked separately and only return ok here if noClicked signal was found.

If toggle() succeeds but invoking clicked() returns false the method still returns ok: true, these should be tracked separately and only return ok here if noClicked signal was found.
epicleafies (Migrated from github.com) commented 2026-03-03 19:08:13 +00:00

If SIGKILL isn't successful it will wait forever, probably want a timeout.

If SIGKILL isn't successful it will wait forever, probably want a timeout.
epicleafies (Migrated from github.com) commented 2026-03-03 19:07:52 +00:00

This works but may be better to add a wait_for_page_not() command to bridge instead of doing custom polling.

This works but may be better to add a wait_for_page_not() command to bridge instead of doing custom polling.
hebasto commented 2026-03-03 21:55:27 +00:00 (Migrated from github.com)

Going to merge this leaving the rest for follow-ups.

Going to merge this leaving the rest for follow-ups.
Sign in to join this conversation.
No description provided.