[Libreoffice-commits] core.git: sc/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 6 13:45:24 UTC 2020


 sc/qa/uitest/chart/chartDataLabels.py |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit d15aa807be1c595dad9abc1dea04bb922570015a
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Oct 2 16:58:27 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Oct 6 15:44:40 2020 +0200

    tdf#137165: sc: Add UItest
    
    Change-Id: Id5c777d5c85cda53924c9b8efae7a6cfa55de839
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103866
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sc/qa/uitest/chart/chartDataLabels.py b/sc/qa/uitest/chart/chartDataLabels.py
index 13709a01c6ed..08397611e268 100644
--- a/sc/qa/uitest/chart/chartDataLabels.py
+++ b/sc/qa/uitest/chart/chartDataLabels.py
@@ -343,8 +343,9 @@ class chartDataLabels(UITestCase):
     self.assertEqual("0.5", get_state_as_dict(xDialog.getChild("MTR_FLD_POS_X"))['Value'])
     self.assertEqual("2.89", get_state_as_dict(xDialog.getChild("MTR_FLD_POS_Y"))['Value'])
 
-    xCanBtn = xDialog.getChild("cancel")
-    xCanBtn.executeAction("CLICK", tuple())
+    # Use OK button in order to test tdf#137165
+    xOkBtn = xDialog.getChild("ok")
+    xOkBtn.executeAction("CLICK", tuple())
 
     xChartMain.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
     xChartMain.executeAction("TYPE", mkPropertyValues({"KEYCODE": "LEFT"}))
@@ -356,8 +357,8 @@ class chartDataLabels(UITestCase):
     self.assertEqual("0.4", get_state_as_dict(xDialog.getChild("MTR_FLD_POS_X"))['Value'])
     self.assertEqual("2.79", get_state_as_dict(xDialog.getChild("MTR_FLD_POS_Y"))['Value'])
 
-    xCanBtn = xDialog.getChild("ok")
-    xCanBtn.executeAction("CLICK", tuple())
+    xOkBtn = xDialog.getChild("ok")
+    xOkBtn.executeAction("CLICK", tuple())
 
     self.ui_test.close_doc()
 


More information about the Libreoffice-commits mailing list