sw/qa/uitest/writer_tests5/tdf163325.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 02a5a4c4341df534ff1c42465e87ca25e63eec4e Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Dec 2 11:07:09 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Dec 2 12:22:57 2024 +0100 tdf#163325: uitest: load the saved document After commit 2145204724049cad1585743c0b980ed2c6561212 Author: Andreas Heinisch <andreas.heini...@yahoo.de> Date: Mon Nov 25 09:17:45 2024 +0100 tdf#163325 - Check Lower() frame during ToC preview Change-Id: Ie34e4d433e747ad68264f618047b49b4a826eaa7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177667 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/uitest/writer_tests5/tdf163325.py b/sw/qa/uitest/writer_tests5/tdf163325.py index 391859cdb715..fe6be3a04506 100644 --- a/sw/qa/uitest/writer_tests5/tdf163325.py +++ b/sw/qa/uitest/writer_tests5/tdf163325.py @@ -14,7 +14,8 @@ from uitest.uihelper.common import get_url_for_data_file, get_state_as_dict class tdf163325(UITestCase): def test_tdf163325_toc_preview_crash(self): - with self.ui_test.load_file(get_url_for_data_file("tdf163325.odt")): + xFilePath = get_url_for_data_file("tdf163325.odt") + with self.ui_test.load_file(xFilePath): # Open ToC dialog and check index preview with self.ui_test.execute_dialog_through_command(".uno:InsertMultiIndex") as xTocDialog: xShowExample = xTocDialog.getChild("showexample") @@ -27,7 +28,7 @@ class tdf163325(UITestCase): # Without the fix in place, this test would have crashed here self.xUITest.executeCommand(".uno:UpdateAllIndexes") - with self.ui_test.load_file(get_url_for_data_file("tdf163325.odt")) as document: + with self.ui_test.load_file(xFilePath) as document: # Check that the index is present xDocumentIndexes = document.DocumentIndexes self.assertEqual(len(xDocumentIndexes), 1)