sw/qa/uitest/sidebar/stylesSidebar.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f63a8fdcd964629cb6d72e17d00c6170e942df2c
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Sep 15 20:14:53 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Sep 15 23:45:08 2022 +0200

    uitest: sw: use wait_until_property_is_updated
    
    Seen in Jenkins
    FAIL: test_load_styles_from_template (stylesSidebar.StylesSidebar)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File 
"/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sw/qa/uitest/sidebar/stylesSidebar.py",
 line 69, in test_load_styles_from_template
        self.assertEqual(expectedResults[i], 
get_state_as_dict(xFlatView)['SelectEntryText'])
    AssertionError: 'customParagraphStyle' != ''
    - customParagraphStyle
    +
    
    Change-Id: I8b97a3a09025768d81969f01b3393126e1ec18dd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140034
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/uitest/sidebar/stylesSidebar.py 
b/sw/qa/uitest/sidebar/stylesSidebar.py
index 3b11fe32d9a0..ec376a164b1d 100644
--- a/sw/qa/uitest/sidebar/stylesSidebar.py
+++ b/sw/qa/uitest/sidebar/stylesSidebar.py
@@ -66,6 +66,7 @@ class StylesSidebar(UITestCase):
                 self.assertEqual(1, len(xFlatView.getChildren()))
 
                 xFlatView.getChild('0').executeAction("SELECT", tuple())
+                self.ui_test.wait_until_property_is_updated(xFlatView, 
"SelectEntryText", expectedResults[i])
                 self.assertEqual(expectedResults[i], 
get_state_as_dict(xFlatView)['SelectEntryText'])
 
             self.xUITest.executeCommand(".uno:Sidebar")

Reply via email to