diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py index 25042f95411..87c51a523c5 100644 --- a/tests/system/shared/editor_utils.py +++ b/tests/system/shared/editor_utils.py @@ -361,7 +361,7 @@ def invokeFindUsage(editor, line, typeOperation, n=1): for _ in range(n): type(editor, typeOperation) snooze(1) - invokeContextMenuItem(editor, "Find Usages") + invokeContextMenuItem(editor, "Find References to Symbol Under Cursor") return True def addBranchWildcardToRoot(rootNode): diff --git a/tests/system/suite_QMLS/tst_QMLS03/test.py b/tests/system/suite_QMLS/tst_QMLS03/test.py index 2583302c4ba..62251a9aeeb 100644 --- a/tests/system/suite_QMLS/tst_QMLS03/test.py +++ b/tests/system/suite_QMLS/tst_QMLS03/test.py @@ -92,7 +92,7 @@ def main(): return for _ in range(5): type(editorArea, "") - invokeContextMenuItem(editorArea, "Find Usages") + invokeContextMenuItem(editorArea, "Find References to Symbol Under Cursor") # check if usage was properly found expectedResults = [ExpectedResult("color-animation.qml", 49, "Rectangle {"), ExpectedResult("color-animation.qml", 109, "Rectangle {"), @@ -111,7 +111,7 @@ def main(): return for _ in range(87): type(editorArea, "") - invokeMenuItem("Tools", "QML/JS", "Find Usages") + invokeMenuItem("Tools", "QML/JS", "Find References to Symbol Under Cursor") # check if usage was properly found expectedResults = [ExpectedResult("color-animation.qml", 50, "anchors { left: parent.left; top: parent.top; right: parent.right; bottom: parent.verticalCenter }"), ExpectedResult("color-animation.qml", 110, "anchors { left: parent.left; top: parent.verticalCenter; right: parent.right; bottom: parent.bottom }"), diff --git a/tests/system/suite_editors/tst_qml_editor/test.py b/tests/system/suite_editors/tst_qml_editor/test.py index 53ddc0884dd..e43545a5541 100644 --- a/tests/system/suite_editors/tst_qml_editor/test.py +++ b/tests/system/suite_editors/tst_qml_editor/test.py @@ -97,7 +97,7 @@ def __invokeFindUsage__(filename, line, additionalKeyPresses, expectedCount): return for ty in additionalKeyPresses: type(editor, ty) - invokeContextMenuItem(editor, "Find Usages") + invokeContextMenuItem(editor, "Find References to Symbol Under Cursor") waitForSearchResults() validateSearchResult(expectedCount)