summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-11-19 17:25:06 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-19 18:25:28 +0100
commitf8790b1d586b3865cfdc56e8f4cdab55a8617769 (patch)
tree6fc68010a5cc926e3075ce11d95712e3798b1de3 /sd
parente3c8de29dd9e947599a8f8991c1597b8fe263d1a (diff)
uitest: better use execute_dialog_through_action in these cases
Change-Id: Ic2317db908afc12973624034f29c1de6f4efd60c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125561 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/uitest/impress_tests/tdf141297.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/qa/uitest/impress_tests/tdf141297.py b/sd/qa/uitest/impress_tests/tdf141297.py
index 1af3465238d9..41fde2ba835d 100644
--- a/sd/qa/uitest/impress_tests/tdf141297.py
+++ b/sd/qa/uitest/impress_tests/tdf141297.py
@@ -23,7 +23,7 @@ class tdf141297(UITestCase):
xCancelBtn = xTemplateDlg.getChild("close")
self.ui_test.close_dialog_through_button(xCancelBtn)
- with self.ui_test.execute_dialog_through_command(".uno:InsertGraphic", close_button="open") as xOpenDialog:
+ with self.ui_test.execute_dialog_through_command(".uno:InsertGraphic", close_button="") as xOpenDialog:
xFileName = xOpenDialog.getChild("file_name")
xFileName.executeAction("TYPE", mkPropertyValues({"TEXT": get_url_for_data_file("LibreOffice.jpg")}))
@@ -33,10 +33,10 @@ class tdf141297(UITestCase):
xLink.executeAction("CLICK", tuple())
- #Confirmation dialog is displayed
- xWarnDialog = self.xUITest.getTopFocusWindow()
- xOK = xWarnDialog.getChild("ok")
- self.ui_test.close_dialog_through_button(xOK)
+ xOpen = xOpenDialog.getChild("open")
+ #Confirmation dialog is displayed
+ with self.ui_test.execute_dialog_through_action(xOpen, "CLICK"):
+ pass
with self.ui_test.execute_dialog_through_command(".uno:ManageLinks", close_button="close") as xDialog: