sw/qa/uitest/chapterNumbering/tdf145215.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e140caf2638b7718cd0bebdaaf86373f0828cbf4
Author:     Vasily Melenchuk <vasily.melenc...@cib.de>
AuthorDate: Mon Nov 15 12:29:06 2021 +0300
Commit:     Vasily Melenchuk <vasily.melenc...@cib.de>
CommitDate: Mon Nov 15 14:59:20 2021 +0100

    UITest: refresh fields for test to ensure we check calculated value
    
    Change-Id: I696d24ba087c2e7d19e9818f4f653e09eca7f32e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125222
    Tested-by: Jenkins
    Reviewed-by: Vasily Melenchuk <vasily.melenc...@cib.de>

diff --git a/sw/qa/uitest/chapterNumbering/tdf145215.py 
b/sw/qa/uitest/chapterNumbering/tdf145215.py
index 74d473fc7287..21cdedf554a2 100644
--- a/sw/qa/uitest/chapterNumbering/tdf145215.py
+++ b/sw/qa/uitest/chapterNumbering/tdf145215.py
@@ -27,6 +27,7 @@ class Tdf145215(UITestCase):
 
             # Check field value (there is only one field)
             textfields = writer_doc.getTextFields()
+            textfields.refresh()
             for textfield in textfields:
                 
self.assertTrue(textfield.supportsService("com.sun.star.text.TextField.GetReference"))
                 self.assertEqual(textfield.CurrentPresentation, "1.2.1(i)")

Reply via email to