UITest_sw_navigator: avoid oneprocess
This is just a test to see whether this is reason why UITest_sw_navigator is failing some much recently. if it's not the case, I'll revert this patch later on This patch reverts -1775b0c25a
"disable unreliable navigator UITest" -f2ba17fecb
"disable more flakey navigator UITest" -2e49ec0eaa
"disable more flakey navigator UITest" -d097856913
"disable more flakey navigator test" -6347dcbd3a
"disable more unreliable navigator UITest" Change-Id: I6e3dde9ad412b0769edee551f7e0ee026586bf8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158184 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
parent
5d347c3d72
commit
0a0c5a5b05
7 changed files with 76 additions and 81 deletions
|
@ -142,8 +142,7 @@ class navigator(UITestCase):
|
|||
xColumn.executeAction("TYPE", mkPropertyValues({"TEXT":"B"}))
|
||||
xColumn.executeAction("TYPE", mkPropertyValues({"KEYCODE":"RETURN"}))
|
||||
xToolkit.processEventsToIdle()
|
||||
# disable flakey UITest
|
||||
# self.assertEqual(get_state_as_dict(xColumn)['Value'], '2')
|
||||
self.assertEqual(get_state_as_dict(xColumn)['Value'], '2')
|
||||
|
||||
xRow.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"}))
|
||||
xRow.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"}))
|
||||
|
|
|
@ -15,6 +15,6 @@ $(eval $(call gb_UITest_set_defs,sw_navigator, \
|
|||
TDOC="$(SRCDIR)/sw/qa/uitest/data" \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UITest_use_oneprocess,sw_navigator))
|
||||
$(eval $(call gb_UITest_avoid_oneprocess,sw_navigator))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
|
|
@ -34,9 +34,8 @@ class tdf134960_hyperlinks(UITestCase):
|
|||
xHyperlinks.executeAction("EXPAND", tuple())
|
||||
|
||||
expectedHyperlinksOrder = [1, 2, 8, 9, 7, 10, 11, 3, 12, 4, 5, 6]
|
||||
# disable flakey test
|
||||
# for i in range(12):
|
||||
# self.assertEqual('Hyperlink ' + str(expectedHyperlinksOrder[i]), get_state_as_dict(xHyperlinks.getChild(str(i)))['Text'])
|
||||
for i in range(12):
|
||||
self.assertEqual('Hyperlink ' + str(expectedHyperlinksOrder[i]), get_state_as_dict(xHyperlinks.getChild(str(i)))['Text'])
|
||||
|
||||
xHyperlinks.executeAction("COLLAPSE", tuple())
|
||||
|
||||
|
|
|
@ -59,24 +59,23 @@ class tdf137274(UITestCase):
|
|||
# wait until the second comment is available
|
||||
self.ui_test.wait_until_child_is_available('Comment2')
|
||||
|
||||
# disable flakey test
|
||||
# # xComments needs reassigned after content tree change
|
||||
# while True:
|
||||
# xComments = self.get_item(xContentTree, 'Comments')
|
||||
# if '1' in xComments.getChildren():
|
||||
# break
|
||||
# time.sleep(self.ui_test.get_default_sleep())
|
||||
# self.assertEqual('Comments', get_state_as_dict(xComments)['Text'])
|
||||
#
|
||||
# xComments.executeAction("EXPAND", tuple())
|
||||
#
|
||||
# # Without the fix in place, this test would have failed with AssertionError: 2 != 0
|
||||
# self.assertEqual(2, len(xComments.getChildren()))
|
||||
# self.assertEqual('C1', get_state_as_dict(xComments.getChild('0'))['Text'])
|
||||
#
|
||||
# xComments.executeAction("COLLAPSE", tuple())
|
||||
#
|
||||
# self.xUITest.executeCommand(".uno:Sidebar")
|
||||
# xComments needs reassigned after content tree change
|
||||
while True:
|
||||
xComments = self.get_item(xContentTree, 'Comments')
|
||||
if '1' in xComments.getChildren():
|
||||
break
|
||||
time.sleep(self.ui_test.get_default_sleep())
|
||||
self.assertEqual('Comments', get_state_as_dict(xComments)['Text'])
|
||||
|
||||
xComments.executeAction("EXPAND", tuple())
|
||||
|
||||
# Without the fix in place, this test would have failed with AssertionError: 2 != 0
|
||||
self.assertEqual(2, len(xComments.getChildren()))
|
||||
self.assertEqual('C1', get_state_as_dict(xComments.getChild('0'))['Text'])
|
||||
|
||||
xComments.executeAction("COLLAPSE", tuple())
|
||||
|
||||
self.xUITest.executeCommand(".uno:Sidebar")
|
||||
|
||||
|
||||
# vim: set shiftwidth=4 softtabstop=4 expandtab:
|
||||
|
|
|
@ -40,21 +40,21 @@ class tdf144672(UITestCase):
|
|||
# tdf#129625: Without the fix in place, this test would have failed with
|
||||
# AssertionError: 'true' != 'false'
|
||||
self.assertEqual('true', get_state_as_dict(xReferences)['IsSemiTransparent'])
|
||||
# disable flakey UITest
|
||||
# xIndexes = self.get_item(xContentTree, 'Indexes')
|
||||
# self.assertEqual('Indexes', get_state_as_dict(xIndexes)['Text'])
|
||||
# self.assertEqual('false', get_state_as_dict(xIndexes)['IsSemiTransparent'])
|
||||
#
|
||||
# xIndexes.executeAction("EXPAND", tuple())
|
||||
#
|
||||
# self.assertEqual('3', get_state_as_dict(xIndexes)['Children'])
|
||||
#
|
||||
# for i in range(3):
|
||||
# # Without the fix in place, this test would have failed here with
|
||||
# # AssertionError: 'false' != 'true'
|
||||
# self.assertEqual('false', get_state_as_dict(xIndexes.getChild(i))['IsSemiTransparent'])
|
||||
#
|
||||
# xIndexes.executeAction("COLLAPSE", tuple())
|
||||
|
||||
xIndexes = self.get_item(xContentTree, 'Indexes')
|
||||
self.assertEqual('Indexes', get_state_as_dict(xIndexes)['Text'])
|
||||
self.assertEqual('false', get_state_as_dict(xIndexes)['IsSemiTransparent'])
|
||||
|
||||
xIndexes.executeAction("EXPAND", tuple())
|
||||
|
||||
self.assertEqual('3', get_state_as_dict(xIndexes)['Children'])
|
||||
|
||||
for i in range(3):
|
||||
# Without the fix in place, this test would have failed here with
|
||||
# AssertionError: 'false' != 'true'
|
||||
self.assertEqual('false', get_state_as_dict(xIndexes.getChild(i))['IsSemiTransparent'])
|
||||
|
||||
xIndexes.executeAction("COLLAPSE", tuple())
|
||||
|
||||
self.xUITest.executeCommand(".uno:Sidebar")
|
||||
|
||||
|
|
|
@ -58,8 +58,7 @@ class tdf148198(UITestCase):
|
|||
|
||||
# without the fix in place, this would fail:
|
||||
# AssertionError: '2' != '11'
|
||||
# Disable unreliable test, sometimes fails with AssertionError: '2' != '0'
|
||||
# self.assertEqual('2', get_state_as_dict(xHyperlinks)['Children'])
|
||||
self.assertEqual('2', get_state_as_dict(xHyperlinks)['Children'])
|
||||
self.assertEqual(sHyperlink0, get_state_as_dict(xHyperlinks.getChild('0'))['Text'])
|
||||
self.assertEqual(sHyperlink1, get_state_as_dict(xHyperlinks.getChild('1'))['Text'])
|
||||
|
||||
|
|
|
@ -155,48 +155,47 @@ class tdf154521(UITestCase):
|
|||
|
||||
# Try the same selection with Bookmark 2
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
# disable flakey UITest
|
||||
# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 2")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 2")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
|
||||
# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 2")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 2")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
|
||||
# # This was "Navigator"
|
||||
# self.assertEqual(self.getTitle(xDoc), "Bookmark 2")
|
||||
|
||||
# # Try the same selection with Bookmark 3
|
||||
|
||||
# # why we need this extra UP?
|
||||
# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 2")
|
||||
# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 3")
|
||||
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 3")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
|
||||
# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 3")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 3")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
|
||||
# # This was "Navigator"
|
||||
# self.assertEqual(self.getTitle(xDoc), "Bookmark 3")
|
||||
|
||||
# # go to the previous item
|
||||
|
||||
# # why we need this extra UP?
|
||||
# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 3")
|
||||
# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmarks")
|
||||
# self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmarks")
|
||||
# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
|
||||
self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 2")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 2")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
|
||||
self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 2")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 2")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
|
||||
# This was "Navigator"
|
||||
# self.assertEqual(self.getTitle(xDoc), "")
|
||||
self.assertEqual(self.getTitle(xDoc), "Bookmark 2")
|
||||
|
||||
# Try the same selection with Bookmark 3
|
||||
|
||||
# why we need this extra UP?
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 2")
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 3")
|
||||
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 3")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
|
||||
self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 3")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 3")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1")
|
||||
|
||||
# This was "Navigator"
|
||||
self.assertEqual(self.getTitle(xDoc), "Bookmark 3")
|
||||
|
||||
# go to the previous item
|
||||
|
||||
# why we need this extra UP?
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 3")
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"}))
|
||||
self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmarks")
|
||||
self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmarks")
|
||||
xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
|
||||
|
||||
# This was "Navigator"
|
||||
self.assertEqual(self.getTitle(xDoc), "")
|
||||
|
||||
self.xUITest.executeCommand(".uno:Sidebar")
|
||||
|
||||
|
|
Loading…
Reference in a new issue