sw/qa/uitest/sidebar/stylesSidebar.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
New commits: commit 72f3df889a950218c9e801aa93bb2e755d26f3e1 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Jan 30 13:05:32 2023 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Jan 30 19:59:41 2023 +0000 sw: blind fix for uitest hang Seen in https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/132028/consoleFull#101810144248ce9c26-9d0a-43a8-83d8-c44f54920d59 Change-Id: I67312b3f7e6c6192e14a6bb3236ba4ff959002f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146353 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/uitest/sidebar/stylesSidebar.py b/sw/qa/uitest/sidebar/stylesSidebar.py index ec376a164b1d..ee20ef23d5eb 100644 --- a/sw/qa/uitest/sidebar/stylesSidebar.py +++ b/sw/qa/uitest/sidebar/stylesSidebar.py @@ -46,16 +46,17 @@ class StylesSidebar(UITestCase): xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") - self.xUITest.executeCommand(".uno:Sidebar") - xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "StyleListPanel"})) - - xFilter = xWriterEdit.getChild('filter') - select_by_text(xFilter, "Custom Styles") - expectedResults = ["customParagraphStyle", "customCharacterStyle", "customFrameStyle", "customPageStyle", "customNumberingStyle"] for i in range(5): + + self.xUITest.executeCommand(".uno:Sidebar") + xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "StyleListPanel"})) + + xFilter = xWriterEdit.getChild('filter') + select_by_text(xFilter, "Custom Styles") + xLeft = xWriterEdit.getChild('left') #change to another style type @@ -69,7 +70,7 @@ class StylesSidebar(UITestCase): self.ui_test.wait_until_property_is_updated(xFlatView, "SelectEntryText", expectedResults[i]) self.assertEqual(expectedResults[i], get_state_as_dict(xFlatView)['SelectEntryText']) - self.xUITest.executeCommand(".uno:Sidebar") + self.xUITest.executeCommand(".uno:Sidebar") # vim: set shiftwidth=4 softtabstop=4 expandtab: