[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Wed Dec 2 22:15:49 UTC 2020


 sw/qa/uitest/options/optionsDialog.py |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

New commits:
commit cf61ce8bc95ba0bc27070b503360dc5ac7a204b3
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Dec 2 17:19:54 2020 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Dec 2 23:14:58 2020 +0100

    tdf#138596: sw: Add UItest
    
    Change-Id: I59b78fe12e1c95e23ac3f7145ca802375ba98cfb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107081
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/uitest/options/optionsDialog.py b/sw/qa/uitest/options/optionsDialog.py
index d991eae826f1..cf1229e1f315 100644
--- a/sw/qa/uitest/options/optionsDialog.py
+++ b/sw/qa/uitest/options/optionsDialog.py
@@ -40,4 +40,27 @@ class optionsDialog(UITestCase):
 
         self.ui_test.close_doc()
 
+    def test_tdf138596(self):
+        self.ui_test.create_doc_in_start_center("writer")
+
+        self.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog")
+        xDialog = self.xUITest.getTopFocusWindow()
+        xPages = xDialog.getChild("pages")
+        xWriterEntry = xPages.getChild('3')
+        xWriterEntry.executeAction("EXPAND", tuple())
+        xFormattingAidsEntry = xWriterEntry.getChild('2')
+        xFormattingAidsEntry.executeAction("SELECT", tuple())
+
+        xApplyBtn = xDialog.getChild("apply")
+
+        # Click apply button twice
+        # Without the fix in place, this test would have crashed here
+        xApplyBtn.executeAction("CLICK", tuple())
+        xApplyBtn.executeAction("CLICK", tuple())
+
+        xOKBtn = xDialog.getChild("ok")
+        self.ui_test.close_dialog_through_button(xOKBtn)
+
+        self.ui_test.close_doc()
+
 # vim: set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list