fix(接口测试): 修复引用场景中断言可编辑的缺陷
--bug=1013564 --user=王孝刚 【接口测试】场景A中引用场景B-场景B中含场景断言-断言信息可编辑 https://www.tapd.cn/55049933/s/1168938
This commit is contained in:
parent
426e5208a7
commit
606fe809fd
|
@ -6,7 +6,8 @@
|
||||||
:placeholder="$t('api_test.request.extract.json_path_expression')"/>
|
:placeholder="$t('api_test.request.extract.json_path_expression')"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-select v-model="jsonPath.option" class="ms-col-type" size="small" style="width:40%;margin-right: 10px" @change="reload">
|
<el-select :disabled="isReadOnly" v-model="jsonPath.option" class="ms-col-type" size="small"
|
||||||
|
style="width:40%;margin-right: 10px" @change="reload">
|
||||||
<el-option :label="$t('api_test.request.assertions.contains')" value="CONTAINS"/>
|
<el-option :label="$t('api_test.request.assertions.contains')" value="CONTAINS"/>
|
||||||
<el-option :label="$t('api_test.request.assertions.not_contains')" value="NOT_CONTAINS"/>
|
<el-option :label="$t('api_test.request.assertions.not_contains')" value="NOT_CONTAINS"/>
|
||||||
<el-option :label="$t('api_test.request.assertions.equals')" value="EQUALS"/>
|
<el-option :label="$t('api_test.request.assertions.equals')" value="EQUALS"/>
|
||||||
|
|
|
@ -22,14 +22,14 @@
|
||||||
<api-json-path-suggest-button
|
<api-json-path-suggest-button
|
||||||
:show-suggest-button="false"
|
:show-suggest-button="false"
|
||||||
:clear-tip="$t('api_test.request.assertions.json_path_clear')"
|
:clear-tip="$t('api_test.request.assertions.json_path_clear')"
|
||||||
:isReadOnly="isReadOnly"
|
:isReadOnly="request.disabled"
|
||||||
@clear="clearJson"/>
|
@clear="clearJson"/>
|
||||||
</span>
|
</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
<div class="assertion-add" :draggable="draggable">
|
<div class="assertion-add" :draggable="draggable">
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-select :disabled="isReadOnly" class="assertion-item" v-model="type"
|
<el-select :disabled="request.disabled" class="assertion-item" v-model="type"
|
||||||
:placeholder="$t('api_test.request.assertions.select_type')" size="small">
|
:placeholder="$t('api_test.request.assertions.select_type')" size="small">
|
||||||
<el-option :label="$t('api_test.request.assertions.text')" :value="options.TEXT"/>
|
<el-option :label="$t('api_test.request.assertions.text')" :value="options.TEXT"/>
|
||||||
<el-option :label="$t('api_test.request.assertions.regex')" :value="options.REGEX"/>
|
<el-option :label="$t('api_test.request.assertions.regex')" :value="options.REGEX"/>
|
||||||
|
@ -42,45 +42,45 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="20">
|
<el-col :span="20">
|
||||||
<ms-api-assertion-text
|
<ms-api-assertion-text
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
:list="assertions.regex"
|
:list="assertions.regex"
|
||||||
:callback="after"
|
:callback="after"
|
||||||
v-if="type === options.TEXT"
|
v-if="type === options.TEXT"
|
||||||
/>
|
/>
|
||||||
<ms-api-assertion-regex
|
<ms-api-assertion-regex
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
:list="assertions.regex"
|
:list="assertions.regex"
|
||||||
:callback="after"
|
:callback="after"
|
||||||
@callback="after"
|
@callback="after"
|
||||||
v-if="type === options.REGEX"
|
v-if="type === options.REGEX"
|
||||||
/>
|
/>
|
||||||
<ms-api-assertion-json-path
|
<ms-api-assertion-json-path
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
:list="assertions.jsonPath"
|
:list="assertions.jsonPath"
|
||||||
:callback="after"
|
:callback="after"
|
||||||
v-if="type === options.JSON_PATH"
|
v-if="type === options.JSON_PATH"
|
||||||
/>
|
/>
|
||||||
<ms-api-assertion-x-path2
|
<ms-api-assertion-x-path2
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
:list="assertions.xpath2"
|
:list="assertions.xpath2"
|
||||||
:callback="after"
|
:callback="after"
|
||||||
v-if="type === options.XPATH2"
|
v-if="type === options.XPATH2"
|
||||||
/>
|
/>
|
||||||
<ms-api-assertion-duration
|
<ms-api-assertion-duration
|
||||||
v-model="time"
|
v-model="time"
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
:duration="assertions.duration"
|
:duration="assertions.duration"
|
||||||
:callback="after"
|
:callback="after"
|
||||||
v-if="type === options.DURATION"
|
v-if="type === options.DURATION"
|
||||||
/>
|
/>
|
||||||
<ms-api-assertion-jsr223
|
<ms-api-assertion-jsr223
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
:list="assertions.jsr223"
|
:list="assertions.jsr223"
|
||||||
:callback="after"
|
:callback="after"
|
||||||
v-if="type === options.JSR223"
|
v-if="type === options.JSR223"
|
||||||
/>
|
/>
|
||||||
<ms-api-assertion-document
|
<ms-api-assertion-document
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
v-model="time"
|
v-model="time"
|
||||||
:document="assertions.document"
|
:document="assertions.document"
|
||||||
:callback="after"
|
:callback="after"
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
|
|
||||||
<ms-api-assertions-edit
|
<ms-api-assertions-edit
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="request.disabled"
|
||||||
:assertions="assertions"
|
:assertions="assertions"
|
||||||
:apiId="apiId"
|
:apiId="apiId"
|
||||||
:reloadData="reloadData"
|
:reloadData="reloadData"
|
||||||
|
|
Loading…
Reference in New Issue