summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/writer_tests3/insertEndnote.py
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-06-24 01:53:06 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-24 02:40:43 +0200
commit9a89eea4c3c58d2efce8afe709c0317869839ff9 (patch)
treef235036802674593f9cf6253f2f6363664494233 /sw/qa/uitest/writer_tests3/insertEndnote.py
parent6805efdecb240fad8c82a5c1756a2a0e92f12b7d (diff)
Revert "uitest: guard create_doc_in_start_center"
This reverts commit 374baf308979306aa35575118c40ccd7caae1e29. Many uitests are failing randomly in jenkins for no apparent reason Change-Id: I5960330fab4967518bfeea32b3b8c5f8bfbea57e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117752 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/writer_tests3/insertEndnote.py')
-rw-r--r--sw/qa/uitest/writer_tests3/insertEndnote.py35
1 files changed, 18 insertions, 17 deletions
diff --git a/sw/qa/uitest/writer_tests3/insertEndnote.py b/sw/qa/uitest/writer_tests3/insertEndnote.py
index 940844a5d563..54dd15e346b5 100644
--- a/sw/qa/uitest/writer_tests3/insertEndnote.py
+++ b/sw/qa/uitest/writer_tests3/insertEndnote.py
@@ -10,25 +10,26 @@ from uitest.uihelper.common import type_text
class insertEndnote(UITestCase):
def test_insert_endnote(self):
- with self.ui_test.create_doc_in_start_center("writer"):
- document = self.ui_test.get_component()
- xWriterDoc = self.xUITest.getTopFocusWindow()
- xWriterEdit = xWriterDoc.getChild("writer_edit")
+ self.ui_test.create_doc_in_start_center("writer")
+ document = self.ui_test.get_component()
+ xWriterDoc = self.xUITest.getTopFocusWindow()
+ xWriterEdit = xWriterDoc.getChild("writer_edit")
- self.xUITest.executeCommand(".uno:InsertEndnote")
+ self.xUITest.executeCommand(".uno:InsertEndnote")
- type_text(xWriterEdit, "LibreOffice")
+ type_text(xWriterEdit, "LibreOffice")
- self.assertEqual(document.Endnotes[0].String, "LibreOffice")
- self.assertEqual(document.Endnotes.getCount(), 1)
- self.xUITest.executeCommand(".uno:Undo")
- self.assertEqual(document.Endnotes[0].String, "")
- self.xUITest.executeCommand(".uno:Undo")
- self.assertEqual(document.Endnotes.getCount(), 0)
- self.xUITest.executeCommand(".uno:Redo")
- self.assertEqual(document.Endnotes[0].String, "")
- self.assertEqual(document.Endnotes.getCount(), 1)
- self.xUITest.executeCommand(".uno:Redo")
- self.assertEqual(document.Endnotes[0].String, "LibreOffice")
+ self.assertEqual(document.Endnotes[0].String, "LibreOffice")
+ self.assertEqual(document.Endnotes.getCount(), 1)
+ self.xUITest.executeCommand(".uno:Undo")
+ self.assertEqual(document.Endnotes[0].String, "")
+ self.xUITest.executeCommand(".uno:Undo")
+ self.assertEqual(document.Endnotes.getCount(), 0)
+ self.xUITest.executeCommand(".uno:Redo")
+ self.assertEqual(document.Endnotes[0].String, "")
+ self.assertEqual(document.Endnotes.getCount(), 1)
+ self.xUITest.executeCommand(".uno:Redo")
+ self.assertEqual(document.Endnotes[0].String, "LibreOffice")
+ self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: