summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests7/tdf45020.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/calc_tests7/tdf45020.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/calc_tests7/tdf45020.py')
-rw-r--r--sc/qa/uitest/calc_tests7/tdf45020.py41
1 files changed, 21 insertions, 20 deletions
diff --git a/sc/qa/uitest/calc_tests7/tdf45020.py b/sc/qa/uitest/calc_tests7/tdf45020.py
index b588d2122903..48ca97fe51a5 100644
--- a/sc/qa/uitest/calc_tests7/tdf45020.py
+++ b/sc/qa/uitest/calc_tests7/tdf45020.py
@@ -11,25 +11,26 @@ from libreoffice.uno.propertyvalue import mkPropertyValues
class tdf45020(UITestCase):
def test_tdf45020_hide_rows_select(self):
- with self.ui_test.create_doc_in_start_center("calc"):
- xCalcDoc = self.xUITest.getTopFocusWindow()
- gridwin = xCalcDoc.getChild("grid_window")
- document = self.ui_test.get_component()
- #in cell A1-A4: apple pear melon mango
- enter_text_to_cell(gridwin, "A1", "apple")
- enter_text_to_cell(gridwin, "A1", "pear")
- enter_text_to_cell(gridwin, "A1", "melon")
- enter_text_to_cell(gridwin, "A1", "mango")
- #select A2 and A3
- gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A2:A3"}))
- #format > Row > Hide
- self.ui_test._xUITest.executeCommand(".uno:HideRow")
- #select A1
- gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
- #press Shift+down
- gridwin.executeAction("TYPE", mkPropertyValues({"KEYCODE":"SHIFT+DOWN"}))
- #verify A1:A4 selected
- gridWinState = get_state_as_dict(gridwin)
- self.assertEqual(gridWinState["MarkedArea"], "Sheet1.A1:Sheet1.A4")
+ calc_doc = self.ui_test.create_doc_in_start_center("calc")
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ gridwin = xCalcDoc.getChild("grid_window")
+ document = self.ui_test.get_component()
+ #in cell A1-A4: apple pear melon mango
+ enter_text_to_cell(gridwin, "A1", "apple")
+ enter_text_to_cell(gridwin, "A1", "pear")
+ enter_text_to_cell(gridwin, "A1", "melon")
+ enter_text_to_cell(gridwin, "A1", "mango")
+ #select A2 and A3
+ gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A2:A3"}))
+ #format > Row > Hide
+ self.ui_test._xUITest.executeCommand(".uno:HideRow")
+ #select A1
+ gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
+ #press Shift+down
+ gridwin.executeAction("TYPE", mkPropertyValues({"KEYCODE":"SHIFT+DOWN"}))
+ #verify A1:A4 selected
+ gridWinState = get_state_as_dict(gridwin)
+ self.assertEqual(gridWinState["MarkedArea"], "Sheet1.A1:Sheet1.A4")
+ self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: