summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-02-01 20:11:00 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-02-01 23:31:18 +0100
commit0108ed5cefdf259f5374d6c6aaf7ae14fea16181 (patch)
tree4d491716bfc434c44096d8a05d439c1546a983bc /sd
parent59164f1ead6fa6fed988830e3b57f7892bcf9e7d (diff)
related: tdf#129032: uitest: check ok button is disabled
Change-Id: I56c7a4736ad7beda15bf5d93e492952ccb4bd1bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110272 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/renameSlide.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/sd/qa/uitest/impress_tests/renameSlide.py b/sd/qa/uitest/impress_tests/renameSlide.py
index 964f6a7c712b..7393a4145a44 100644
--- a/sd/qa/uitest/impress_tests/renameSlide.py
+++ b/sd/qa/uitest/impress_tests/renameSlide.py
@@ -7,9 +7,6 @@
from uitest.framework import UITestCase
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import get_state_as_dict
-import time
-from uitest.debug import sleep
-from uitest.uihelper.common import select_pos
class renameSlide(UITestCase):
@@ -37,5 +34,21 @@ class renameSlide(UITestCase):
xOKBtn = xDialog.getChild("ok")
self.ui_test.close_dialog_through_button(xOKBtn)
+ self.xUITest.executeCommand(".uno:InsertPage")
+
+ self.ui_test.execute_dialog_through_command(".uno:RenamePage")
+ xDialog = self.xUITest.getTopFocusWindow()
+
+ xOKBtn = xDialog.getChild("ok")
+ self.assertEqual("true", get_state_as_dict(xOKBtn)['Enabled'])
+
+ name_entry = xDialog.getChild("name_entry")
+ name_entry.executeAction("TYPE", mkPropertyValues({"TEXT":"NewName"}))
+
+ self.assertEqual("false", get_state_as_dict(xOKBtn)['Enabled'])
+
+ xCancelBtn = xDialog.getChild("cancel")
+ self.ui_test.close_dialog_through_button(xCancelBtn)
+
self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: