sw/qa/uitest/writer_tests8/tdf150443.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 0b21e2a404c114529376dc50764dc0286dafc745 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Mon Mar 4 12:47:15 2024 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Mar 4 15:28:46 2024 +0100 sw: UITest_writer_tests8 test_tdf150443 more tolerant This fails on Fedora 39, also in the libreoffice-24-2 branch, with: self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "4") AssertionError: '5' != '4' Presumably a font substitution changing metrics problem, as "NexusSansOT" is not found. It looks like the exact page doesn't matter for the test. Change-Id: I62eadb8321352ea47a0f8f83ab91fd50ff01f7e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164353 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/qa/uitest/writer_tests8/tdf150443.py b/sw/qa/uitest/writer_tests8/tdf150443.py index fb39bd8a0375..91937551a4b3 100644 --- a/sw/qa/uitest/writer_tests8/tdf150443.py +++ b/sw/qa/uitest/writer_tests8/tdf150443.py @@ -26,7 +26,9 @@ class tdf150443(UITestCase): xsearch = xDialog.getChild("search") xsearch.executeAction("CLICK", tuple()) #first search xToolkit.processEventsToIdle() - self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "4") + page = get_state_as_dict(xWriterEdit)["CurrentPage"] + # page may depend on font subsitution, just check it moved + self.assertTrue(page == "4" or page == "5") # reject the tracked table row in Manage Changes dialog window with self.ui_test.execute_modeless_dialog_through_command(".uno:AcceptTrackedChanges", close_button="close") as xTrackDlg: