uitest/mass-testing/calc.py    |   11 +++++++++++
 uitest/mass-testing/impress.py |   11 +++++++++++
 uitest/mass-testing/writer.py  |   12 ++++++++++++
 3 files changed, 34 insertions(+)

New commits:
commit 74c3fe7017ca1eecba1b8524ff8234b6c63b0fd0
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed May 25 13:51:59 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu May 26 10:39:21 2022 +0200

    mass-testing: Add tests for the sidebar
    
    In order to find bugs like tdf#149268
    
    Change-Id: I799fcfc4bc6ac92126d97ceab747187ac5065bf2

diff --git a/uitest/mass-testing/calc.py b/uitest/mass-testing/calc.py
index 6b9c5c5..580a99a 100755
--- a/uitest/mass-testing/calc.py
+++ b/uitest/mass-testing/calc.py
@@ -212,4 +212,15 @@ class massTesting(UITestCase):
 
                     self.xUITest.executeCommand(".uno:JumpToNextTable")
 
+    def test_sidebar(self):
+        with self.load_file() as xEdit:
+            self.xUITest.executeCommand(".uno:Sidebar")
+
+            panels = [ "TextPropertyPanel", "StyleListPanel", "GalleryPanel", 
"ScNavigatorPanel", "ScFunctionsPanel" ]
+
+            for panel in panels:
+                xEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": 
panel}))
+
+            self.xUITest.executeCommand(".uno:Sidebar")
+
 # vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/uitest/mass-testing/impress.py b/uitest/mass-testing/impress.py
index 7ffc3de..a885d0a 100755
--- a/uitest/mass-testing/impress.py
+++ b/uitest/mass-testing/impress.py
@@ -93,4 +93,15 @@ class massTesting(UITestCase):
 
             self.xUITest.executeCommand(".uno:Undo")
 
+    def test_sidebar(self):
+        with self.load_file() as xEdit:
+            # The sidebar is already displayed
+
+            panels = [ "TextPropertyPanel", "StyleListPanel", "GalleryPanel",
+                    "SdNavigatorPanel", "DefaultShapesPanel", 
"SdSlideTransitionPanel",
+                    "SdCustomAnimationPanel", "SdAllMasterPagesPanel" ]
+
+            for panel in panels:
+                xEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": 
panel}))
+
 # vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/uitest/mass-testing/writer.py b/uitest/mass-testing/writer.py
index 3d84770..83ead78 100755
--- a/uitest/mass-testing/writer.py
+++ b/uitest/mass-testing/writer.py
@@ -86,4 +86,16 @@ class massTesting(UITestCase):
             for i in range(pageCount):
                 xEdit.executeAction("TYPE", 
mkPropertyValues({"KEYCODE":"PAGEUP"}))
 
+    def test_sidebar(self):
+        with self.load_file() as xEdit:
+            self.xUITest.executeCommand(".uno:Sidebar")
+
+            panels = [ "TextPropertyPanel", "StyleListPanel", "GalleryPanel",
+                    "SwNavigatorPanel", "PageFormatPanel", 
"InspectorTextPanel", "SwManageChangesPanel" ]
+
+            for panel in panels:
+                xEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": 
panel}))
+
+            self.xUITest.executeCommand(".uno:Sidebar")
+
 # vim: set shiftwidth=4 softtabstop=4 expandtab:

Reply via email to