Fix GUI tests on macOS

This commit is contained in:
Jonathan White 2023-04-30 09:26:33 -04:00
parent 28e2806e07
commit d04a6c4eb7
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -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"));