sc/qa/uitest/pasteSpecial/tdf65856.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 575cfa6aebbea714f08e303a3e78d1ac8d99a7e0
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue Jun 21 16:29:46 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Jun 22 17:23:56 2022 +0200

    tdf#69750: sc: Add UItest
    
    Change-Id: I4039da64a069af74046f95abacd3476122d9a542
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136232
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/qa/uitest/pasteSpecial/tdf65856.py 
b/sc/qa/uitest/pasteSpecial/tdf65856.py
index 7a3b1f90e21b..6b9e928b4255 100644
--- a/sc/qa/uitest/pasteSpecial/tdf65856.py
+++ b/sc/qa/uitest/pasteSpecial/tdf65856.py
@@ -7,7 +7,7 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 from uitest.framework import UITestCase
-from uitest.uihelper.common import get_url_for_data_file
+from uitest.uihelper.common import get_url_for_data_file, get_state_as_dict
 from libreoffice.uno.propertyvalue import mkPropertyValues
 from libreoffice.calc.document import get_cell_by_position
 from libreoffice.calc.paste_special import reset_default_values
@@ -57,10 +57,10 @@ class tdf65856(UITestCase):
             #mark cell B2
             gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B2"}))
             with 
self.ui_test.execute_dialog_through_command(".uno:PasteSpecial") as xDialog:
-                reset_default_values(self, xDialog)
-
                 xmove_right = xDialog.getChild("move_right")
-                xmove_right.executeAction("CLICK", tuple())
+
+                # tdf#69750: Without the fix in place, this test would have 
failed here
+                self.assertEqual("true", 
get_state_as_dict(xmove_right)["Checked"])
 
             #check
             self.assertEqual(get_cell_by_position(calc_doc, 0, 1, 
1).getString(), "1")

Reply via email to