tdf#133862: sw: Add UItest

Change-Id: Id08dc6fbbdb59888ecab29e922d84db75f97e779
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96087
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/uitest/writer_tests8/customizeDialog.py b/uitest/writer_tests8/customizeDialog.py
index 92fddfd..dfc6ae7 100644
--- a/uitest/writer_tests8/customizeDialog.py
+++ b/uitest/writer_tests8/customizeDialog.py
@@ -89,4 +89,19 @@ class ConfigureDialog(UITestCase):

        self.ui_test.close_doc()

    def test_tdf133862(self):
        self.ui_test.create_doc_in_start_center("writer")

        self.xUITest.executeCommand(".uno:InsertObjectStarMath")

        # Without the fix in place, calling customize dialog after inserting
        # a formula object would crash
        self.ui_test.execute_dialog_through_command(".uno:ConfigureDialog")
        xDialog = self.xUITest.getTopFocusWindow()

        xcancBtn = xDialog.getChild("cancel")
        xcancBtn.executeAction("CLICK", tuple())

        self.ui_test.close_doc()

# vim: set shiftwidth=4 softtabstop=4 expandtab: