diff options
Diffstat (limited to 'tests/system/suite_QMLS/tst_QMLS06/test.py')
-rw-r--r-- | tests/system/suite_QMLS/tst_QMLS06/test.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/system/suite_QMLS/tst_QMLS06/test.py b/tests/system/suite_QMLS/tst_QMLS06/test.py index 8c998e8fa6..7989883b7d 100644 --- a/tests/system/suite_QMLS/tst_QMLS06/test.py +++ b/tests/system/suite_QMLS/tst_QMLS06/test.py @@ -41,7 +41,11 @@ def main(): invokeMenuItem("File", "Save All") # invoke Refactoring - Wrap Component in Loader numLinesExpected = len(str(editorArea.plainText).splitlines()) + 10 - invokeContextMenuItem(editorArea, "Refactoring", "Wrap Component in Loader") + try: + invokeContextMenuItem(editorArea, "Refactoring", "Wrap Component in Loader") + except: + # If menu item is disabled it needs to reopen the menu for updating + invokeContextMenuItem(editorArea, "Refactoring", "Wrap Component in Loader") # wait until refactoring ended waitFor("len(str(editorArea.plainText).splitlines()) >= numLinesExpected", 5000) # verify if refactoring was properly applied |