sw/qa/uitest/writer_tests7/tdf135413.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a68832695d99625b842cd422b8edb714797739e2
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sat Mar 7 16:09:46 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sat Mar 7 18:30:56 2026 +0100

    Fix test on Windows
    
    The assertion added in commit 58f2c1e6ab3052e0746dabb36e6061125779b034
    (tdf#135413: sw: Add UItest, 2025-03-04) used page count 16, obviously
    because that is what Writer shows opening the file. But the number is
    caused by a wrong layout; the table in the document unexpectedly takes
    two pages.
    
    Testing the UI test on Windows, I see
    
    AssertionError: '16' != '15'
    
    and that's the same what Stephan reported on
    https://gerrit.libreoffice.org/c/core/+/130940/comment/5a512c89_ff82b3a3.
    So let the test assert on "no less than 15".
    
    Change-Id: I3df87d40eb4b7e810f30123683e91f85f9632588
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201176
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/qa/uitest/writer_tests7/tdf135413.py 
b/sw/qa/uitest/writer_tests7/tdf135413.py
index 22c088eb2d01..965fce93a01b 100644
--- a/sw/qa/uitest/writer_tests7/tdf135413.py
+++ b/sw/qa/uitest/writer_tests7/tdf135413.py
@@ -20,6 +20,6 @@ class tdf135413(UITestCase):
         with self.ui_test.load_file(get_url_for_data_file("tdf135413.docx")):
             xWriterDoc = self.xUITest.getTopFocusWindow()
             xWriterEdit = xWriterDoc.getChild("writer_edit")
-            self.assertEqual("16", get_state_as_dict(xWriterEdit)["Pages"])
+            
self.assertGreaterEqual(int(get_state_as_dict(xWriterEdit)["Pages"]), 15)
 
 # vim: set shiftwidth=4 softtabstop=4 expandtab:

Reply via email to