[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 24 18:49:13 UTC 2021
sw/qa/uitest/writer_tests7/forms.py | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
New commits:
commit a0cc84e63cd3bcc028aca093335c5528f7c4de6a
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Feb 24 14:38:59 2021 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Feb 24 19:48:26 2021 +0100
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 at libreoffice.org>
diff --git a/sw/qa/uitest/writer_tests7/forms.py b/sw/qa/uitest/writer_tests7/forms.py
index eb1f266fbf10..a8d0774ab71d 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:
More information about the Libreoffice-commits
mailing list