summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
Diffstat (limited to 'uitest')
-rw-r--r--uitest/uitest/uihelper/common.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/uitest/uitest/uihelper/common.py b/uitest/uitest/uihelper/common.py
index 5d4c448f22a2..cf3a277aa15b 100644
--- a/uitest/uitest/uihelper/common.py
+++ b/uitest/uitest/uihelper/common.py
@@ -41,6 +41,11 @@ def change_measurement_unit(UITestCase, unit):
actionProps = mkPropertyValues(props)
xUnit.executeAction("SELECT", actionProps)
+ # tdf#137930: Check apply button doesn't reset the value
+ xApplyBtn = xDialogOpt.getChild("apply")
+ xApplyBtn.executeAction("CLICK", tuple())
+ UITestCase.assertEqual(unit, get_state_as_dict(xUnit)['SelectEntryText'])
+
xOKBtn = xDialogOpt.getChild("ok")
UITestCase.ui_test.close_dialog_through_button(xOKBtn)