diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-04-26 10:37:40 +0200 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-04-28 20:34:17 +0200 |
commit | a9cea0ddeb5cd51db0720f96af75af75120908d9 (patch) | |
tree | 4fe6c52d7bfbbc9da950ad753058b4bc0726b2da /sw/qa/uitest/writer_tests3 | |
parent | 71a27a57898c578e6b27d7f4343736c393cef3cd (diff) |
tdf#90496 - Remember last used view in hyperlink dialog
Change-Id: I500e9e58c84486307c50f4ccb878ad0340412246
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151039
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'sw/qa/uitest/writer_tests3')
-rw-r--r-- | sw/qa/uitest/writer_tests3/hyperlinkdialog.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/qa/uitest/writer_tests3/hyperlinkdialog.py b/sw/qa/uitest/writer_tests3/hyperlinkdialog.py index 4494ab45a14c..6390310810d5 100644 --- a/sw/qa/uitest/writer_tests3/hyperlinkdialog.py +++ b/sw/qa/uitest/writer_tests3/hyperlinkdialog.py @@ -91,6 +91,20 @@ class HyperlinkDialog(UITestCase): xedit.executeAction("SELECT", mkPropertyValues({"START_POS": "0", "END_POS": "29"})) self.assertEqual(get_state_as_dict(xedit)["SelectedText"], "http://www.libreoffice.org:80") + def test_tdf90496(self): + with self.ui_test.create_doc_in_start_center("writer"): + with self.ui_test.execute_dialog_through_command(".uno:HyperlinkDialog", close_button="cancel") as xDialog: + # Select a random tab to check the preselection in the hyperlink dialog + xTab = xDialog.getChild("tabcontrol") + select_pos(xTab, "1") + + with self.ui_test.execute_dialog_through_command(".uno:HyperlinkDialog", close_button="cancel") as xDialog: + xTab = xDialog.getChild("tabcontrol") + # Without the fix in place, this test would have failed with + # AssertionError: '1' != '0' + # i.e. the last used tab in the hyperlink dialog was not remembered + self.assertEqual("1", get_state_as_dict(xTab)["CurrPagePos"]) + def test_tdf141166(self): # Skip this test for --with-help=html and --with-help=online, as that would fail with a |