summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/pasteSpecial
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-06-21 16:29:46 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-06-22 17:23:56 +0200
commit575cfa6aebbea714f08e303a3e78d1ac8d99a7e0 (patch)
treea48a6593727254215e3a6cb60ce08ceea045564e /sc/qa/uitest/pasteSpecial
parenta9df32c1f693fb79a6b8b4518cefe9ab5db4e03c (diff)
tdf#69750: sc: Add UItest
Change-Id: I4039da64a069af74046f95abacd3476122d9a542 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136232 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/pasteSpecial')
-rw-r--r--sc/qa/uitest/pasteSpecial/tdf65856.py8
1 files changed, 4 insertions, 4 deletions
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")