disable more unreliable navigator UITest
Change-Id: I5df1edd842f4b1ed0936f6b903c6d2b2ac3aad39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158091 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
f2de1554af
commit
6347dcbd3a
1 changed files with 36 additions and 36 deletions
|
@ -159,44 +159,44 @@ class tdf154521(UITestCase):
|
|||
# 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")
|
||||
# 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"}))
|
||||
|
||||
# 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"}))
|
||||
|
||||
# This was "Navigator"
|
||||
self.assertEqual(self.getTitle(xDoc), "")
|
||||
# self.assertEqual(self.getTitle(xDoc), "")
|
||||
|
||||
self.xUITest.executeCommand(".uno:Sidebar")
|
||||
|
||||
|
|
Loading…
Reference in a new issue