summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2024-03-04 12:47:15 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-03-07 12:02:35 +0100
commitb84f10d5eadeecc668e29159c0485376466b7f54 (patch)
treeeeffc9f4303ec61f3364c42326372817e7c096d8
parent6ebe0eceb1ae4a3e544c733be37e5f02c5f46e80 (diff)
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.stahl@allotropia.de> (cherry picked from commit 0b21e2a404c114529376dc50764dc0286dafc745) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164364 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/uitest/writer_tests7/tdf150443.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/uitest/writer_tests7/tdf150443.py b/sw/qa/uitest/writer_tests7/tdf150443.py
index fb39bd8a0375..91937551a4b3 100644
--- a/sw/qa/uitest/writer_tests7/tdf150443.py
+++ b/sw/qa/uitest/writer_tests7/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: