summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/hide_cols/tdf95306.py
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-06-24 01:53:06 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-24 02:40:43 +0200
commit9a89eea4c3c58d2efce8afe709c0317869839ff9 (patch)
treef235036802674593f9cf6253f2f6363664494233 /sc/qa/uitest/hide_cols/tdf95306.py
parent6805efdecb240fad8c82a5c1756a2a0e92f12b7d (diff)
Revert "uitest: guard create_doc_in_start_center"
This reverts commit 374baf308979306aa35575118c40ccd7caae1e29. Many uitests are failing randomly in jenkins for no apparent reason Change-Id: I5960330fab4967518bfeea32b3b8c5f8bfbea57e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117752 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/hide_cols/tdf95306.py')
-rw-r--r--sc/qa/uitest/hide_cols/tdf95306.py34
1 files changed, 18 insertions, 16 deletions
diff --git a/sc/qa/uitest/hide_cols/tdf95306.py b/sc/qa/uitest/hide_cols/tdf95306.py
index cb1c2195ab26..63f976849ee3 100644
--- a/sc/qa/uitest/hide_cols/tdf95306.py
+++ b/sc/qa/uitest/hide_cols/tdf95306.py
@@ -20,21 +20,23 @@ def get_column_hidden(doc, index):
class HideDisjointColumns(UITestCase):
def test_hide_columns(self):
- with self.ui_test.create_doc_in_start_center("calc"):
- xTopWindow = self.xUITest.getTopFocusWindow()
-
- gridwin = xTopWindow.getChild("grid_window")
- gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B1"}))
- gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "D1", "EXTEND":"true"}))
-
- doc = self.ui_test.get_component()
- self.assertFalse(get_column_hidden(doc, 1))
- self.assertFalse(get_column_hidden(doc, 3))
- self.ui_test._xUITest.executeCommand(".uno:HideColumn")
- self.assertTrue(get_column_hidden(doc, 1))
- self.assertTrue(get_column_hidden(doc, 3))
- self.ui_test._xUITest.executeCommand(".uno:Undo")
- self.assertFalse(get_column_hidden(doc, 1))
- self.assertFalse(get_column_hidden(doc, 3))
+ self.ui_test.create_doc_in_start_center("calc")
+ xTopWindow = self.xUITest.getTopFocusWindow()
+
+ gridwin = xTopWindow.getChild("grid_window")
+ gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B1"}))
+ gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "D1", "EXTEND":"true"}))
+
+ doc = self.ui_test.get_component()
+ self.assertFalse(get_column_hidden(doc, 1))
+ self.assertFalse(get_column_hidden(doc, 3))
+ self.ui_test._xUITest.executeCommand(".uno:HideColumn")
+ self.assertTrue(get_column_hidden(doc, 1))
+ self.assertTrue(get_column_hidden(doc, 3))
+ self.ui_test._xUITest.executeCommand(".uno:Undo")
+ self.assertFalse(get_column_hidden(doc, 1))
+ self.assertFalse(get_column_hidden(doc, 3))
+
+ self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: