summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-11-18 12:07:13 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-18 14:34:32 +0100
commit6e04ef6eda7d632ad39b3938ab864417303c8368 (patch)
treea83fb38e3150a044ce57b1a0d167538e073cbb22
parented6651ec3b5dafed759cb602ad25e150592693a9 (diff)
tdf#135033: sd: Add UItest
Change-Id: Idc3cb84972d01496e378e224d65cd4db71648c40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125446 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sd/qa/uitest/impress_tests/tdf137637.py17
1 files changed, 17 insertions, 0 deletions
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'])
+