mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix GUI tests on macOS
This commit is contained in:
@@ -970,6 +970,10 @@ void TestGui::testSearch()
|
|||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
helpButton->trigger();
|
helpButton->trigger();
|
||||||
QTRY_VERIFY(!helpPanel->isVisible());
|
QTRY_VERIFY(!helpPanel->isVisible());
|
||||||
|
|
||||||
|
// Need to re-activate the window after the help test
|
||||||
|
m_mainWindow->activateWindow();
|
||||||
|
|
||||||
// Search for "ZZZ"
|
// Search for "ZZZ"
|
||||||
QTest::keyClicks(searchTextEdit, "ZZZ");
|
QTest::keyClicks(searchTextEdit, "ZZZ");
|
||||||
QTRY_COMPARE(searchTextEdit->text(), QString("ZZZ"));
|
QTRY_COMPARE(searchTextEdit->text(), QString("ZZZ"));
|
||||||
|
|||||||
Reference in New Issue
Block a user