From c22b4b35e1e8205a3106dd1c9c04af6a3ea8ab7c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 15 Dec 2022 12:57:29 +0100 Subject: [PATCH] SquishTests: Redo open document from navigation view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For unknown reasons this does no more work on a couple of machines. Re-doing the original approach by explicitly expanding the tree as necessary up to the file we want to open. Change-Id: I329e18f3e2162e381e11fb6164a448ae67def606 Reviewed-by: Robert Löhning Reviewed-by: Christian Stenger --- tests/system/shared/editor_utils.py | 44 +++++++++++++++++++---------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py index 57a60fd6a97..af56ed6f8dc 100644 --- a/tests/system/shared/editor_utils.py +++ b/tests/system/shared/editor_utils.py @@ -374,24 +374,38 @@ def addBranchWildcardToRoot(rootNode): return rootNode[:pos] + " [[]*[]]" + rootNode[pos:] def openDocument(treeElement): + # split into tree elements + treePathElements = re.split(r"(?