From e701ccbd7314b890b4b6dc21c723530ee50f231f Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sun, 30 Apr 2023 09:26:33 -0400 Subject: [PATCH] Fix GUI tests on macOS --- tests/gui/TestGui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index 92b6a52e0..23e59f338 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -970,6 +970,10 @@ void TestGui::testSearch() QApplication::processEvents(); helpButton->trigger(); QTRY_VERIFY(!helpPanel->isVisible()); + + // Need to re-activate the window after the help test + m_mainWindow->activateWindow(); + // Search for "ZZZ" QTest::keyClicks(searchTextEdit, "ZZZ"); QTRY_COMPARE(searchTextEdit->text(), QString("ZZZ"));