diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-24 10:32:08 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-24 14:27:22 +0100 |
commit | b551c9e24a51b9443f3b0c17d354eed4f4953403 (patch) | |
tree | b215caeb73453f4fc96b7577196d7ff81d9cedaa /sd/qa/uitest | |
parent | dc4ee83823d6cb94a507e2ebb9cc8eb56a6a3fa6 (diff) |
uitest: use execute_dialog_through_action in these cases too
Change-Id: I899cdbe24b4277623f72b23a8c877feed867a594
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125753
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd/qa/uitest')
-rw-r--r-- | sd/qa/uitest/impress_tests/save_readonly_with_password.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/qa/uitest/impress_tests/save_readonly_with_password.py b/sd/qa/uitest/impress_tests/save_readonly_with_password.py index cd4fe98339c0..8ec8fdef5f28 100644 --- a/sd/qa/uitest/impress_tests/save_readonly_with_password.py +++ b/sd/qa/uitest/impress_tests/save_readonly_with_password.py @@ -36,7 +36,7 @@ class save_readonly_with_password(UITestCase): xPasswordCheckButton.executeAction("CLICK", tuple()) xOpen = xSaveDialog.getChild("open") - with self.ui_test.execute_dialog_through_action(xOpen, "CLICK") as xPasswordDialog: + with self.ui_test.execute_dialog_through_action(xOpen, "CLICK", close_button="") as xPasswordDialog: xReadonly = xPasswordDialog.getChild("readonly") xReadonly.executeAction("CLICK", tuple()) xNewPassword = xPasswordDialog.getChild("newpassroEntry") @@ -44,10 +44,10 @@ class save_readonly_with_password(UITestCase): xConfirmPassword = xPasswordDialog.getChild("confirmropassEntry") xConfirmPassword.executeAction("TYPE", mkPropertyValues({"TEXT": "password"})) - # PPTX confirmation dialog is displayed - xWarnDialog = self.xUITest.getTopFocusWindow() - xSave = xWarnDialog.getChild("save") - self.ui_test.close_dialog_through_button(xSave) + xOk = xPasswordDialog.getChild("ok") + # PPTX confirmation dialog is displayed + with self.ui_test.execute_dialog_through_action(xOk, "CLICK", close_button="save"): + pass with self.ui_test.load_file(systemPathToFileUrl(xFilePath)) as document: |