uitest/math_tests/start.py | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit 9b52e7ab543406783a1535d03856a8b13b554a70 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Mar 10 11:48:37 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Mar 10 13:10:39 2022 +0100 tdf#140386: math: Add UItest Change-Id: I7347619ce190778ca12e5bb56c23600efad3af95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131311 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/uitest/math_tests/start.py b/uitest/math_tests/start.py index 08914f9954eb..a7e5ac6fdccd 100644 --- a/uitest/math_tests/start.py +++ b/uitest/math_tests/start.py @@ -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"):