sw/qa/uitest/writer_tests4/tdf148395.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 60ab59ef593d7466250b91bd58c123a6a8f4a734
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon May 16 15:14:21 2022 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon May 16 20:22:51 2022 +0200

    Fix a UITest on Windows
    
    Change-Id: I943a7696fd896c8709fdcd25bce650dd80244daf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134367
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/qa/uitest/writer_tests4/tdf148395.py 
b/sw/qa/uitest/writer_tests4/tdf148395.py
index 813b0028ed33..2687715f7db2 100644
--- a/sw/qa/uitest/writer_tests4/tdf148395.py
+++ b/sw/qa/uitest/writer_tests4/tdf148395.py
@@ -26,7 +26,8 @@ class Tdf148395(UITestCase):
 
                 xSelectedEntry = get_state_as_dict(xTypes)['SelectEntryText']
                 self.assertTrue('Spreadsheet' in xSelectedEntry )
-                self.assertEqual('5', get_state_as_dict(xTypes)['Children'])
+                # On Windows, there's also 6th item: "Further objects"
+                self.assertLessEqual('5', 
get_state_as_dict(xTypes)['Children'])
 
                 for i in range(5):
                     xTypes.executeAction("TYPE", mkPropertyValues({"KEYCODE": 
"DOWN"}))

Reply via email to