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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 2 17:08:33 UTC 2020


 sc/qa/uitest/calc_tests6/moveCopySheet.py |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit 5750575771a44d248da597a359fe6abe0c2073ef
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Mar 2 12:10:49 2020 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Mar 2 18:07:59 2020 +0100

    uitest: check copy in .uno:Move
    
    Change-Id: I916d3853500705b1037aa669374511c184402313
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89822
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/sc/qa/uitest/calc_tests6/moveCopySheet.py b/sc/qa/uitest/calc_tests6/moveCopySheet.py
index be9abaecb1fb..16370451e893 100644
--- a/sc/qa/uitest/calc_tests6/moveCopySheet.py
+++ b/sc/qa/uitest/calc_tests6/moveCopySheet.py
@@ -62,6 +62,23 @@ class moveCopySheet(UITestCase):
         self.assertEqual(document.Sheets[0].Name, "Sheet1")
         self.assertEqual(document.Sheets[1].Name, "moveName")
 
+        #Check copy option
+        self.ui_test.execute_dialog_through_command(".uno:Move")
+        xDialog = self.xUITest.getTopFocusWindow()
+        xCopy = xDialog.getChild("copy")
+        xCopy.executeAction("CLICK", tuple())
+        sheetName = "moveName_2"
+        newName = xDialog.getChild("newName")
+        self.assertEqual(get_state_as_dict(newName)["Text"], sheetName)
+
+        xOKBtn = xDialog.getChild("ok")
+        self.ui_test.close_dialog_through_button(xOKBtn)
+
+        self.assertEqual(document.Sheets.getCount(), 3)
+        self.assertEqual(document.Sheets[0].Name, sheetName)
+        self.assertEqual(document.Sheets[1].Name, "Sheet1")
+        self.assertEqual(document.Sheets[2].Name, "moveName")
+
         self.ui_test.close_doc()
 
 # vim: set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list