improve the stability of TypeaheadRequestFocusTest

it failed sometimes under MATE desktop environment on Linux

(cherry picked from commit 37901295e1)
This commit is contained in:
Dmitry Batrak
2021-09-21 13:01:07 +03:00
parent 6743f36c32
commit fdbb6f02b8

View File

@@ -45,6 +45,7 @@ public class TypeaheadRequestFocusTest {
initFinished.get(10, TimeUnit.SECONDS);
clickOn(frameField);
SwingUtilities.invokeAndWait(TypeaheadRequestFocusTest::showPopup);
robot.delay(1000);
pressAndRelease(KeyEvent.VK_ENTER);
pressAndRelease(KeyEvent.VK_A);
typedInPopup.get(10, TimeUnit.SECONDS);