summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2019-04-22 22:38:28 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2019-04-22 22:38:28 +0200
commitf631db9e5e83706ed2678fb4db737700dd623a1b (patch)
tree4213ce7689f1abe06ccd08015cf893910b3a4c5f
parent7eeaee26607180f22b4a374c9ee6747a6ec15401 (diff)
mass-uitesting: Get focus after closing preview
otherwise, it fails at times
-rwxr-xr-xuitest/mass-testing/calc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/uitest/mass-testing/calc.py b/uitest/mass-testing/calc.py
index 7aaa1904..7217c3a5 100755
--- a/uitest/mass-testing/calc.py
+++ b/uitest/mass-testing/calc.py
@@ -88,6 +88,8 @@ class massTesting(UITestCase):
self.xUITest.executeCommand(".uno:PrintPreview") #open print preview
self.xUITest.executeCommand(".uno:ClosePreview") # close print preview
+ self.xUITest.getTopFocusWindow()
+
self.ui_test.close_doc()
def test_hide_column_and_undo(self):