Kaydet (Commit) 129e09ef authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: extend chart edit test to change chart through dialog

Change-Id: I9ffdddff84e290a4df25067be5bf574fac273ce7
üst d2b2278a
......@@ -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": ""}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment