diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-02-24 14:38:59 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-02-24 19:48:26 +0100 |
commit | a0cc84e63cd3bcc028aca093335c5528f7c4de6a (patch) | |
tree | 3a021e610504591d4cd19c9326171408127210ff /sw/qa/uitest/writer_tests7 | |
parent | 62b1c81d11035bfd9323dc49b1e99cae55e89ffa (diff) |
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>
Diffstat (limited to 'sw/qa/uitest/writer_tests7')
-rw-r--r-- | sw/qa/uitest/writer_tests7/forms.py | 22 |
1 files changed, 22 insertions, 0 deletions
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: |