tdf#138701: sw: Add UItest
Change-Id: I3a7ef6742d647b71a63746384daf415d77a495b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111486
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/uitest/writer_tests7/forms.py b/sw/qa/uitest/writer_tests7/forms.py
index eb1f266..a8d0774 100644
--- a/sw/qa/uitest/writer_tests7/forms.py
+++ b/sw/qa/uitest/writer_tests7/forms.py
@@ -70,4 +70,26 @@ class Forms(UITestCase):
self.ui_test.close_doc()
def test_tdf138701(self):
# Reuse file from another test
self.ui_test.load_file(get_url_for_data_file("tdf140198.odt"))
self.xUITest.executeCommand(".uno:JumpToNextFrame")
self.ui_test.execute_modeless_dialog_through_command(".uno:ControlProperties")
xChild = self.ui_test.wait_until_child_is_available('combobox-Data field')
xChild.executeAction("TYPE", mkPropertyValues({"TEXT": "1"}))
xChild.executeAction("TYPE", mkPropertyValues({"TEXT": "2"}))
xChild.executeAction("TYPE", mkPropertyValues({"TEXT": "3"}))
xChild.executeAction("TYPE", mkPropertyValues({"TEXT": "4"}))
xChild.executeAction("TYPE", mkPropertyValues({"TEXT": "5"}))
# Without the fix in place, this test would have failed with
# AssertionError: '12345' != '54321'
self.assertEqual("12345", get_state_as_dict(xChild)['Text'])
self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: