diff --git a/sw/qa/uitest/navigator/tdf154521.py b/sw/qa/uitest/navigator/tdf154521.py index 7b2125646ec6..048efb0212c2 100644 --- a/sw/qa/uitest/navigator/tdf154521.py +++ b/sw/qa/uitest/navigator/tdf154521.py @@ -130,73 +130,74 @@ class tdf154521(UITestCase): xContentTree = xNavigatorPanel.getChild("contenttree") - self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 1") - self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 1") - self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1") +# disable flakey UITest +# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 1") +# self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 1") +# self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1") -# self.xUITest.executeCommand(".uno:Escape") +## self.xUITest.executeCommand(".uno:Escape") - # get the title of SwNavigatorPanel with emptying it to access to the selected bookmark - self.assertEqual(self.getTitle(xDoc), "Navigator") - # title was emptied - self.assertEqual(self.getTitle(xDoc), "") +# # get the title of SwNavigatorPanel with emptying it to access to the selected bookmark +# self.assertEqual(self.getTitle(xDoc), "Navigator") +# # title was emptied +# self.assertEqual(self.getTitle(xDoc), "") - # Select nested bookmark in Navigator +# # Select nested bookmark in Navigator - xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) +# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) - # This jumped to Bookmark 1 after selection - self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 1") - self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 1") - self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1") +# # This jumped to Bookmark 1 after selection +# self.ui_test.wait_until_property_is_updated(xContentTree, "SelectEntryText", "Bookmark 1") +# self.assertEqual(get_state_as_dict(xContentTree)["SelectEntryText"], "Bookmark 1") +# self.assertEqual(get_state_as_dict(xContentTree)["SelectionCount"], "1") - # This was "Navigator" - self.assertEqual(self.getTitle(xDoc), "Bookmark 1") +# # This was "Navigator" +# self.assertEqual(self.getTitle(xDoc), "Bookmark 1") - # Try the same selection with Bookmark 2 - xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"})) - 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") +# # Try the same selection with Bookmark 2 +# xContentTree.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"})) +# 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") +# # This was "Navigator" +# self.assertEqual(self.getTitle(xDoc), "Bookmark 2") - # Try the same selection with Bookmark 3 +# # 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") +# # 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") +# 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") +# # This was "Navigator" +# self.assertEqual(self.getTitle(xDoc), "Bookmark 3") - # go to the previous item +# # 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"})) +# # 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), "") +# # This was "Navigator" +# self.assertEqual(self.getTitle(xDoc), "") - self.xUITest.executeCommand(".uno:Sidebar") +# self.xUITest.executeCommand(".uno:Sidebar") # vim: set shiftwidth=4 softtabstop=4 expandtab: