fix(接口测试): 修改接口测试自定义请求是否开启全局提示错误问题

This commit is contained in:
xinxin.wu 2024-04-24 15:27:25 +08:00 committed by 刘瑞斌
parent fab408b574
commit d58266e56f
3 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,10 @@
<div v-if="props.isDefinition && innerConfig" class="flex items-center"> <div v-if="props.isDefinition && innerConfig" class="flex items-center">
<a-switch v-model:model-value="innerConfig.enableGlobal" :disabled="props.disabled" size="small" type="line" /> <a-switch v-model:model-value="innerConfig.enableGlobal" :disabled="props.disabled" size="small" type="line" />
<div class="ml-[8px] text-[var(--color-text-1)]">{{ t('ms.assertion.openGlobal') }}</div> <div class="ml-[8px] text-[var(--color-text-1)]">{{ t('ms.assertion.openGlobal') }}</div>
<a-tooltip :content="t('ms.assertion.openGlobalTip')" position="left"> <a-tooltip
:content="innerConfig.enableGlobal ? t('ms.assertion.openGlobalTip') : t('ms.assertion.closeGlobalTip')"
position="left"
>
<icon-question-circle <icon-question-circle
class="ml-[4px] text-[var(--color-text-brand)] hover:text-[rgb(var(--primary-5))]" class="ml-[4px] text-[var(--color-text-brand)] hover:text-[rgb(var(--primary-5))]"
size="16" size="16"

View File

@ -24,6 +24,8 @@ export default {
'ms.assertion.openGlobal': 'Implement the Global Declaration', 'ms.assertion.openGlobal': 'Implement the Global Declaration',
'ms.assertion.openGlobalTip': 'ms.assertion.openGlobalTip':
'It is enabled by default. If it is disabled, the global assertion will not be executed when running this interface.', 'It is enabled by default. If it is disabled, the global assertion will not be executed when running this interface.',
'ms.assertion.closeGlobalTip':
'It is closed by default. If it is disabled, the global assertion will not be executed when running this interface.',
'ms.assertion.expectedValueTitle': 'ms.assertion.expectedValueTitle':
'The special characters $() * +. "[]{}^ |" to escape as the "special characters", such as "$" escaped"$', 'The special characters $() * +. "[]{}^ |" to escape as the "special characters", such as "$" escaped"$',
}; };

View File

@ -24,5 +24,6 @@ export default {
'ms.assertion.validateChild': '添加子校验', 'ms.assertion.validateChild': '添加子校验',
'ms.assertion.openGlobal': '启用全局断言', 'ms.assertion.openGlobal': '启用全局断言',
'ms.assertion.openGlobalTip': '默认开启,关闭则运行该接口时不执行全局断言', 'ms.assertion.openGlobalTip': '默认开启,关闭则运行该接口时不执行全局断言',
'ms.assertion.closeGlobalTip': '默认关闭,关闭则运行该接口时不执行全局断言',
'ms.assertion.expectedValueTitle': `特殊字符"$ ( ) * + . [ ]{ } \\^ |"需转义为"\\特殊字符",如"$"转义后为"\\$`, 'ms.assertion.expectedValueTitle': `特殊字符"$ ( ) * + . [ ]{ } \\^ |"需转义为"\\特殊字符",如"$"转义后为"\\$`,
}; };