diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-01-30 13:05:32 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-01-30 19:59:41 +0000 |
commit | 72f3df889a950218c9e801aa93bb2e755d26f3e1 (patch) | |
tree | 74afce109228a48d732c1a346792e1615be8a041 /sw/qa/uitest | |
parent | 86558061332e9828d5a69fe97b439bf49560f552 (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest')
-rw-r--r-- | sw/qa/uitest/sidebar/stylesSidebar.py | 15 |
1 files changed, 8 insertions, 7 deletions
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: |