tdf#140386: math: Add UItest

Change-Id: I7347619ce190778ca12e5bb56c23600efad3af95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131311
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2022-03-10 11:48:37 +01:00
parent 5a348c9881
commit 9b52e7ab54

View File

@@ -19,6 +19,18 @@ import platform
class SimpleMathTest(UITestCase):
def test_math_unoCommand(self):
with self.ui_test.create_doc_in_start_center("math"):
xMathDoc = self.xUITest.getTopFocusWindow()
# tdf#140386
self.xUITest.executeCommand(".uno:InsertCommandText?Text:string=backepsilon")
xEditView = xMathDoc.getChild("editview")
self.assertEqual("backepsilon", get_state_as_dict(xEditView)["Text"])
def test_math_edit(self):
with self.ui_test.create_doc_in_start_center("math"):