Squish: Expect correct path when adding file

Change-Id: I46bf8399ec72a56212b631a6094b180e5da0981f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Robert Loehning
2015-01-28 18:06:53 +01:00
parent c5c229b48f
commit 37bbc8a4d4

View File

@@ -37,8 +37,8 @@ def addFileToProject(projectPath, category, fileTemplate, fileName):
replaceEditorContent(nameLineEdit, fileName)
pathLineEdit = waitForObject("{type='Utils::FancyLineEdit' unnamed='1' visible='1' "
"toolTip?='Full path: *'}")
if not test.xcompare(pathLineEdit.text, # QTCREATORBUG-13831
projectPath, "Verifying whether path is correct."):
if not test.compare(pathLineEdit.text,
projectPath, "Verifying whether path is correct."):
replaceEditorContent(pathLineEdit, projectPath)
clickButton(waitForObject(":Next_QPushButton"))
projCombo = waitForObject("{buddy={name='projectLabel' text='Add to project:' type='QLabel' "