sw/qa/uitest/sidebar/stylesSidebar.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
New commits: commit 7490c6e217871d0020f64e3e82e56fac3e1309a3 Author: Xisco Fauli <[email protected]> AuthorDate: Mon Jan 30 13:05:32 2023 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Tue Jan 31 15:12:28 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 <[email protected]> (cherry picked from commit 72f3df889a950218c9e801aa93bb2e755d26f3e1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146398 Tested-by: Xisco Fauli <[email protected]> diff --git a/sw/qa/uitest/sidebar/stylesSidebar.py b/sw/qa/uitest/sidebar/stylesSidebar.py index 3b11fe32d9a0..1107f0bf590c 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 @@ -68,7 +69,7 @@ class StylesSidebar(UITestCase): xFlatView.getChild('0').executeAction("SELECT", tuple()) 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:
