From a2ee79c90a6d158e642ad1ac404e5ccd87d27f76 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Wed, 2 Feb 2022 18:15:12 -0900 Subject: SwNavigator: test if member count has changed In the HasContentChanged function, make the comment "FillMemberList tests if member count in old member array equals member count in new member array" honest. Change-Id: I88ee65bb4ed0c56930b8d5ee968ed6c5abb8d841 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129393 Tested-by: Jenkins Reviewed-by: Jim Raykowski --- sw/qa/uitest/navigator/tdf137274.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/qa') diff --git a/sw/qa/uitest/navigator/tdf137274.py b/sw/qa/uitest/navigator/tdf137274.py index 72044f2cc398..a25f449abe9b 100644 --- a/sw/qa/uitest/navigator/tdf137274.py +++ b/sw/qa/uitest/navigator/tdf137274.py @@ -52,6 +52,10 @@ class tdf137274(UITestCase): # wait until the second comment is available self.ui_test.wait_until_child_is_available('Comment2') + # xComments needs reassigned after content tree change + xComments = xContentTree.getChild('10') + self.assertEqual('Comments', get_state_as_dict(xComments)['Text']) + xComments.executeAction("EXPAND", tuple()) # Without the fix in place, this test would have failed with AssertionError: 2 != 0 -- cgit v1.2.3