sc/qa/uitest/options/tdf122977.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
New commits: commit 592bfa4d21e22ca5aa0ce228388558c52941b81a Author: Jan-Marek Glogowski <jan-marek.glogow...@extern.cib.de> AuthorDate: Sun Feb 16 18:51:07 2020 +0100 Commit: Jan-Marek Glogowski <glo...@fbihome.de> CommitDate: Mon Feb 17 02:55:36 2020 +0100 Fix UITest_options: changed property name Seems the color widget was changed into a tree at some point, so the entry amount is now in "Children" instead of "EntryCount". Change-Id: Ief6e6d0ebc4a6571a7f7e978b838eb49b2e051cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88831 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glo...@fbihome.de> diff --git a/sc/qa/uitest/options/tdf122977.py b/sc/qa/uitest/options/tdf122977.py index ee8d4ff3b4c1..11d0ff98888c 100644 --- a/sc/qa/uitest/options/tdf122977.py +++ b/sc/qa/uitest/options/tdf122977.py @@ -19,6 +19,7 @@ class chartDefaultColors(UITestCase): xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") document = self.ui_test.get_component() + #Go to Tools -> Options -> Charts -> Default Colors self.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog") #optionsdialog xDialogOpt = self.xUITest.getTopFocusWindow() @@ -32,12 +33,14 @@ class chartDefaultColors(UITestCase): xAdd = xDialogOpt.getChild("add") xDelete = xDialogOpt.getChild("delete") xDefault = xDialogOpt.getChild("default") + #click Default - reset xDefault.executeAction("CLICK", tuple()) - nrDefaultColors = get_state_as_dict(xColors)["EntryCount"] + nrDefaultColors = get_state_as_dict(xColors)["Children"] nrDefaultColors1 = int(nrDefaultColors) + 1 xAdd.executeAction("CLICK", tuple()) #add new color - self.assertEqual(get_state_as_dict(xColors)["EntryCount"], str(nrDefaultColors1)) + self.assertEqual(get_state_as_dict(xColors)["Children"], str(nrDefaultColors1)) + #delete new color def handle_delete_dlg(dialog): xyesBtn = dialog.getChild("yes") @@ -45,13 +48,13 @@ class chartDefaultColors(UITestCase): self.ui_test.execute_blocking_action(xDelete.executeAction, args=('CLICK', ()), dialog_handler=handle_delete_dlg) - self.assertEqual(get_state_as_dict(xColors)["EntryCount"], nrDefaultColors) + self.assertEqual(get_state_as_dict(xColors)["Children"], nrDefaultColors) xAdd.executeAction("CLICK", tuple()) #add new color - self.assertEqual(get_state_as_dict(xColors)["EntryCount"], str(nrDefaultColors1)) + self.assertEqual(get_state_as_dict(xColors)["Children"], str(nrDefaultColors1)) #click Default xDefault.executeAction("CLICK", tuple()) - self.assertEqual(get_state_as_dict(xColors)["EntryCount"], nrDefaultColors) + self.assertEqual(get_state_as_dict(xColors)["Children"], nrDefaultColors) xCancelBtn = xDialogOpt.getChild("cancel") self.ui_test.close_dialog_through_button(xCancelBtn) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits