SquishTests: Adapt combo box values

Change-Id: I4ca2cf10ff1fe1c6fde2835f04d954527232b658
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2024-05-07 10:14:14 +02:00
parent 76f2b6d5e1
commit 6c9cea2f82
3 changed files with 3 additions and 3 deletions

View File

@@ -126,7 +126,7 @@ def doSimpleDebugging(currentKit, currentConfigName, expectedBPOrder=[], enableQ
expectedLabelTexts.append("Running\.") expectedLabelTexts.append("Running\.")
switchViewTo(ViewConstants.PROJECTS) switchViewTo(ViewConstants.PROJECTS)
switchToBuildOrRunSettingsFor(currentKit, ProjectSettings.RUN) switchToBuildOrRunSettingsFor(currentKit, ProjectSettings.RUN)
selectFromCombo(":EnableQMLDebugger_ComboBox", "Enabled" if enableQml else "Disabled") selectFromCombo(":EnableQMLDebugger_ComboBox", "Enable" if enableQml else "Disable")
switchViewTo(ViewConstants.EDIT) switchViewTo(ViewConstants.EDIT)
if not __startDebugger__(currentKit, currentConfigName): if not __startDebugger__(currentKit, currentConfigName):
return False return False

View File

@@ -114,7 +114,7 @@ def main():
# make sure QML Debugging is enabled # make sure QML Debugging is enabled
switchViewTo(ViewConstants.PROJECTS) switchViewTo(ViewConstants.PROJECTS)
switchToBuildOrRunSettingsFor(Targets.getDefaultKit(), ProjectSettings.RUN) switchToBuildOrRunSettingsFor(Targets.getDefaultKit(), ProjectSettings.RUN)
selectFromCombo(":EnableQMLDebugger_ComboBox", "Enabled") selectFromCombo(":EnableQMLDebugger_ComboBox", "Enable")
switchViewTo(ViewConstants.EDIT) switchViewTo(ViewConstants.EDIT)
# start debugging # start debugging
clickButton(fancyDebugButton) clickButton(fancyDebugButton)

View File

@@ -35,7 +35,7 @@ def main():
return return
switchViewTo(ViewConstants.PROJECTS) switchViewTo(ViewConstants.PROJECTS)
switchToBuildOrRunSettingsFor(Targets.getDefaultKit(), ProjectSettings.RUN) switchToBuildOrRunSettingsFor(Targets.getDefaultKit(), ProjectSettings.RUN)
selectFromCombo(":EnableQMLDebugger_ComboBox", "Enabled") selectFromCombo(":EnableQMLDebugger_ComboBox", "Enable")
switchViewTo(ViewConstants.EDIT) switchViewTo(ViewConstants.EDIT)
clickButton(fancyDebugButton) clickButton(fancyDebugButton)
locAndExprTV = waitForObject(":Locals and Expressions_Debugger::Internal::WatchTreeView") locAndExprTV = waitForObject(":Locals and Expressions_Debugger::Internal::WatchTreeView")