sd/qa/uitest/impress_tests/tdf137637.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
New commits: commit 6e04ef6eda7d632ad39b3938ab864417303c8368 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Nov 18 12:07:13 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Nov 18 14:34:32 2021 +0100 tdf#135033: sd: Add UItest Change-Id: Idc3cb84972d01496e378e224d65cd4db71648c40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125446 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sd/qa/uitest/impress_tests/tdf137637.py b/sd/qa/uitest/impress_tests/tdf137637.py index a76c0c970b29..11e948eb654f 100644 --- a/sd/qa/uitest/impress_tests/tdf137637.py +++ b/sd/qa/uitest/impress_tests/tdf137637.py @@ -6,6 +6,7 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues +from uitest.uihelper.common import get_state_as_dict class Tdf137637(UITestCase): @@ -32,3 +33,19 @@ class Tdf137637(UITestCase): # AttributeError: 'NoneType' object has no attribute 'getImplementationName' self.assertEqual("com.sun.star.drawing.SvxShapeCollection", document.CurrentSelection.getImplementationName()) + xAddBtn = xImpressDoc.getChild("add_effect") + xAddBtn.executeAction("CLICK", tuple()) + + xAnimationList = xImpressDoc.getChild("custom_animation_list") + self.assertEqual('1', get_state_as_dict(xAnimationList)['Children']) + + self.xUITest.executeCommand(".uno:Undo") + + # tdf#135033: Without the fix in place, this test would have failed with + # AssertionError: '0' != '1' + self.assertEqual('0', get_state_as_dict(xAnimationList)['Children']) + + self.xUITest.executeCommand(".uno:Redo") + + self.assertEqual('1', get_state_as_dict(xAnimationList)['Children']) +