diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-16 18:15:06 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-16 18:27:14 +0200 |
commit | 129e09efba3d5b7f8d6e3b43cb24cd4131398023 (patch) | |
tree | ae98d1e3c26a85ec5b1210ab9972bc2322b91fa8 /uitest/calc_tests | |
parent | d2b2278aaba7f78afb1d8d3bf8fdb199f5a8cdbb (diff) |
uitest: extend chart edit test to change chart through dialog
Change-Id: I9ffdddff84e290a4df25067be5bf574fac273ce7
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r-- | uitest/calc_tests/edit_chart.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/uitest/calc_tests/edit_chart.py b/uitest/calc_tests/edit_chart.py index 6f24ff499fbe..63b7aedac0c3 100644 --- a/uitest/calc_tests/edit_chart.py +++ b/uitest/calc_tests/edit_chart.py @@ -33,7 +33,7 @@ class CalcChartEditUIDemo(UITestCase): xGridWindow.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:C2"})) - def test_activate_chart(self): + def test_select_secondary_axis(self): self.ui_test.create_doc_in_start_center("calc") @@ -62,9 +62,16 @@ class CalcChartEditUIDemo(UITestCase): print(xChartMainTop.getChildren()) print(xChartMain.getChildren()) - xChartMain.executeAction("SELECT", mkPropertyValues({"NAME": "CID/D=0:CS=0:CT=0:Series=0"})) + xSeriesObj = xChartMain.getChild("CID/D=0:CS=0:CT=0:Series=0") + # xChartMain.executeAction("SELECT", mkPropertyValues({"NAME": "CID/D=0:CS=0:CT=0:Series=0"})) + self.ui_test.execute_dialog_through_action(xSeriesObj, "COMMAND", mkPropertyValues({"COMMAND": "FormatDataSeries"})) - time.sleep(10) + xSeriesFormatDlg = self.xUITest.getTopFocusWindow() + xAxis2 = xSeriesFormatDlg.getChild("RBT_OPT_AXIS_2") + xAxis2.executeAction("CLICK", tuple()) + + xCancelBtn = xSeriesFormatDlg.getChild("ok") + xCancelBtn.executeAction("CLICK", tuple()) xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": ""})) |