diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-15 10:12:31 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-16 08:17:04 +0100 |
commit | f7c8fa9591f434c28dfe9c1fc114c4763c2217ca (patch) | |
tree | abe45ce1a29c7dd67b16d19c2e9daa9a41e4700a /sw | |
parent | a182dea0413c467b834f206f9cb91dc3f56acd35 (diff) |
uitest: simplify code
Change-Id: I1f5d0398de29de339369777e3c9bccd33141464c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109323
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/uitest/options/optionsDialog.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/qa/uitest/options/optionsDialog.py b/sw/qa/uitest/options/optionsDialog.py index cf1229e1f315..45cb2a62954a 100644 --- a/sw/qa/uitest/options/optionsDialog.py +++ b/sw/qa/uitest/options/optionsDialog.py @@ -5,9 +5,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -import time -import uitest.config -import uitest.uihelper.common class optionsDialog(UITestCase): @@ -28,8 +25,7 @@ class optionsDialog(UITestCase): def handle_more_icons_dlg(dialog): # Check it doesn't crash while opening it xCloseBtn = dialog.getChild("buttonClose") - while uitest.uihelper.common.get_state_as_dict(xCloseBtn)['Enabled'] != 'true': - time.sleep(uitest.config.DEFAULT_SLEEP) + self.ui_test.wait_until_property_is_updated(xCloseBtn, "Enabled", "true") self.ui_test.close_dialog_through_button(xCloseBtn) self.ui_test.execute_blocking_action(xMoreIconsBtn.executeAction, args=('CLICK', ()), |