From 98f3281256e6ff435c67d83c6895fff5841b70be Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 17 Aug 2025 14:25:45 +0530 Subject: Use view for filtering window actions + window action router spec --- spec/testUtils.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/testUtils.cpp') diff --git a/spec/testUtils.cpp b/spec/testUtils.cpp index c359e91..e5c9e96 100644 --- a/spec/testUtils.cpp +++ b/spec/testUtils.cpp @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include "LuaRuntime.hpp" @@ -65,3 +67,9 @@ bool wait_for_lua_to_be_true(QString lua_code) { return evaluation_completed_spy.first().first().toBool(); }); } + +void activate_window(QMainWindow *win) { + win->show(); + QVERIFY(QTest::qWaitForWindowExposed(win)); + QTRY_VERIFY(win->isActiveWindow()); +} -- cgit v1.3.1