fix(接口测试): 场景步骤没有开启点击执行提示

--bug=1038445 --user=宋昌昌 【接口测试】场景-场景内步骤没有一个开启的-执行场景时给提示「没有开启的步骤」 https://www.tapd.cn/55049933/s/1494715
This commit is contained in:
song-cc-rock 2024-04-11 15:59:16 +08:00 committed by 刘瑞斌
parent dffac08451
commit f06a996871
3 changed files with 6 additions and 0 deletions

View File

@ -313,6 +313,10 @@
} }
return !!node.enable; return !!node.enable;
}); });
if (waitTingDebugSteps.length === 0) {
Message.warning(t('apiScenario.execute.no.step.tips'));
return;
}
realExecute( realExecute(
{ {
steps: waitTingDebugSteps, steps: waitTingDebugSteps,

View File

@ -262,4 +262,5 @@ export default {
'apiScenario.schedule.table.tooltip.enable.two': 'Next run time: {time}', 'apiScenario.schedule.table.tooltip.enable.two': 'Next run time: {time}',
'apiScenario.schedule.table.tooltip.disable': 'Scheduled task is disabled', 'apiScenario.schedule.table.tooltip.disable': 'Scheduled task is disabled',
'apiScenario.save.env': 'Scenario Environment', 'apiScenario.save.env': 'Scenario Environment',
'apiScenario.execute.no.step.tips': 'No open step',
}; };

View File

@ -250,4 +250,5 @@ export default {
'apiScenario.schedule.table.tooltip.enable.two': '下次运行时间:{time}', 'apiScenario.schedule.table.tooltip.enable.two': '下次运行时间:{time}',
'apiScenario.schedule.table.tooltip.disable': '定时任务未开启', 'apiScenario.schedule.table.tooltip.disable': '定时任务未开启',
'apiScenario.save.env': '场景保存的环境', 'apiScenario.save.env': '场景保存的环境',
'apiScenario.execute.no.step.tips': '没有开启的步骤',
}; };