aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/shared/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/shared/project.py')
-rw-r--r--tests/system/shared/project.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py
index 5bb724a0b1..71689babf7 100644
--- a/tests/system/shared/project.py
+++ b/tests/system/shared/project.py
@@ -9,11 +9,11 @@ def openQbsProject(projectPath):
def openQmakeProject(projectPath, targets=Targets.desktopTargetClasses(), fromWelcome=False):
cleanUpUserFiles(projectPath)
if fromWelcome:
- wsButtonFrame, wsButtonLabel = getWelcomeScreenSideBarButton('Open Project...')
- if not all((wsButtonFrame, wsButtonLabel)):
+ wsButton = getWelcomeScreenSideBarButton('Open Project...')
+ if not object.exists(wsButton):
test.fatal("Could not find 'Open Project...' button on Welcome Page.")
return []
- mouseClick(wsButtonLabel)
+ mouseClick(wsButton)
else:
invokeMenuItem("File", "Open File or Project...")
selectFromFileDialog(projectPath)
@@ -60,11 +60,11 @@ def __createProjectOrFileSelectType__(category, template, fromWelcome = False, i
if fromWelcome:
if not isProject:
test.fatal("'Create Project...' on Welcome screen only handles projects nowadays.")
- wsButtonFrame, wsButtonLabel = getWelcomeScreenSideBarButton("Create Project...")
- if not all((wsButtonFrame, wsButtonLabel)):
+ wsButton = getWelcomeScreenSideBarButton("Create Project...")
+ if not object.exists(wsButton):
test.fatal("Could not find 'Create Project...' button on Welcome Page")
return []
- mouseClick(wsButtonLabel)
+ mouseClick(wsButton)
elif isProject:
invokeMenuItem("File", "New Project...")
else: