summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/qa/uitest/conditional_format/tdf105466.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/sc/qa/uitest/conditional_format/tdf105466.py b/sc/qa/uitest/conditional_format/tdf105466.py
index ead8a19313bb..2b0be6aefcbe 100644
--- a/sc/qa/uitest/conditional_format/tdf105466.py
+++ b/sc/qa/uitest/conditional_format/tdf105466.py
@@ -11,20 +11,22 @@ from uitest.framework import UITestCase
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import select_pos
-import unittest
-
class tdf105466(UITestCase):
- @unittest.skip("issue with floating windows")
def test_changing_conditional_format(self):
with self.ui_test.create_doc_in_start_center("calc"):
- with self.ui_test.execute_modeless_dialog_through_command(".uno:ConditionalFormatDialog") as xCondFormatDlg:
+ with self.ui_test.execute_modeless_dialog_through_command(".uno:ConditionalFormatDialog", close_button="") as xCondFormatDlg:
for i in range(0,4):
- with self.subTest(i = i):
- xTypeLstBox = xCondFormatDlg.getChild("type")
- select_pos(xTypeLstBox, str(i))
+ xTypeLstBox = xCondFormatDlg.getChild("type")
+ select_pos(xTypeLstBox, str(i))
+
+ # After changing the type, the dialog is recalculated
+ xCondFormatDlg = self.xUITest.getTopFocusWindow()
+
+ xOkBtn = xCondFormatDlg.getChild("ok")
+ self.ui_test.close_dialog_through_button(xOkBtn)
# vim: set shiftwidth=4 softtabstop=4 expandtab: