diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-02-28 18:28:30 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-02-28 20:51:00 +0100 |
commit | 9a810cd97b3d92c7b6ea277fe2e483c223405e88 (patch) | |
tree | 7c6691ab832cb934de3209d6fadfebb2dd0a7241 /sw/qa/uitest/writer_tests3 | |
parent | a6a3edaa8b34ead7458a59d00e96c5b38b4de887 (diff) |
uitest: remove duplicated tests
They are pretty much the same as the other one in the
same file
Besides, the 'with self.assertRaises(IndexOutOfBoundsException)'
nonsense
Change-Id: I0ad9aaf80721eb49080d94a34deb43b0bc39724c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130718
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/writer_tests3')
-rw-r--r-- | sw/qa/uitest/writer_tests3/insertQrCodeGen.py | 24 | ||||
-rw-r--r-- | sw/qa/uitest/writer_tests3/insertSignatureLine.py | 34 |
2 files changed, 0 insertions, 58 deletions
diff --git a/sw/qa/uitest/writer_tests3/insertQrCodeGen.py b/sw/qa/uitest/writer_tests3/insertQrCodeGen.py index 51e5669ac477..ec88944af6a7 100644 --- a/sw/qa/uitest/writer_tests3/insertQrCodeGen.py +++ b/sw/qa/uitest/writer_tests3/insertQrCodeGen.py @@ -23,9 +23,6 @@ class insertQrCode(UITestCase): xURL = xDialog.getChild("edit_text") type_text(xURL, "www.libreoffice.org") - with self.assertRaises(IndexOutOfBoundsException): - document.DrawPage.getByIndex(0) - # Reopen the dialog box with self.ui_test.execute_dialog_through_command(".uno:InsertQrCode") as xDialog: @@ -44,25 +41,4 @@ class insertQrCode(UITestCase): self.assertEqual(document.DrawPage.getByIndex(0).BarCodeProperties.ErrorCorrection, 1) self.assertEqual(document.DrawPage.getByIndex(0).BarCodeProperties.Border, 1) - - def test_insert_qr_code_gen2(self): - with self.ui_test.create_doc_in_start_center("writer") as document: - xWriterDoc = self.xUITest.getTopFocusWindow() - - with self.ui_test.execute_dialog_through_command(".uno:InsertQrCode") as xDialog: - - xURL = xDialog.getChild("edit_text") - xECC_Low = xDialog.getChild("button_low") - xBorder = xDialog.getChild("edit_margin") - - type_text(xURL, "www.libreoffice.org") #set the QR code - xECC_Low.executeAction("CLICK", tuple()) - xBorder.executeAction("UP", tuple()) - xBorder.executeAction("DOWN", tuple()) - - #check the QR Code in the document - self.assertEqual(document.DrawPage.getByIndex(0).BarCodeProperties.Payload, "www.libreoffice.org") - self.assertEqual(document.DrawPage.getByIndex(0).BarCodeProperties.ErrorCorrection, 1) - self.assertEqual(document.DrawPage.getByIndex(0).BarCodeProperties.Border, 1) - # vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/sw/qa/uitest/writer_tests3/insertSignatureLine.py b/sw/qa/uitest/writer_tests3/insertSignatureLine.py index 51cc5073049d..67987a57e860 100644 --- a/sw/qa/uitest/writer_tests3/insertSignatureLine.py +++ b/sw/qa/uitest/writer_tests3/insertSignatureLine.py @@ -23,9 +23,6 @@ class insertSignatureLine(UITestCase): xName = xDialog.getChild("edit_name") xName.executeAction("TYPE", mkPropertyValues({"TEXT":"Name"})) #set the signature line - with self.assertRaises(IndexOutOfBoundsException): - document.DrawPage.getByIndex(0) - # set the signature line with self.ui_test.execute_dialog_through_command(".uno:InsertSignatureLine") as xDialog: @@ -51,35 +48,4 @@ class insertSignatureLine(UITestCase): self.assertEqual(element.SignatureLineShowSignDate, True) self.assertEqual(element.SignatureLineSigningInstructions, "Instructions") - - def test_insert_signature_line2(self): - with self.ui_test.create_doc_in_start_center("writer") as document: - xWriterDoc = self.xUITest.getTopFocusWindow() - - with self.ui_test.execute_dialog_through_command(".uno:InsertSignatureLine") as xDialog: - - xName = xDialog.getChild("edit_name") - xTitle = xDialog.getChild("edit_title") - xEmail = xDialog.getChild("edit_email") - xComment = xDialog.getChild("checkbox_can_add_comments") - xDate = xDialog.getChild("checkbox_show_sign_date") - xInstructions = xDialog.getChild("edit_instructions") - - xName.executeAction("TYPE", mkPropertyValues({"TEXT":"Name"})) #set the signature line - xTitle.executeAction("TYPE", mkPropertyValues({"TEXT":"Title"})) - xEmail.executeAction("TYPE", mkPropertyValues({"TEXT":"Email"})) - xDate.executeAction("CLICK", tuple()) - xComment.executeAction("CLICK", tuple()) - xInstructions.executeAction("TYPE", mkPropertyValues({"TEXT":"Instructions"})) - - #check the signature Line in the document - element = document.DrawPage.getByIndex(0) - self.assertEqual(element.SignatureLineSuggestedSignerName, "Name") - self.assertEqual(element.SignatureLineSuggestedSignerTitle, "Title") - self.assertEqual(element.SignatureLineSuggestedSignerEmail, "Email") - self.assertEqual(element.SignatureLineSuggestedSignerTitle, "Title") - self.assertEqual(element.SignatureLineCanAddComment, False) - self.assertEqual(element.SignatureLineShowSignDate, False) - self.assertEqual(element.SignatureLineSigningInstructions, "Instructions") - # vim: set shiftwidth=4 softtabstop=4 expandtab: |