Skip to content

Commit

Permalink
fix: the new test case request is always empty (#526)
Browse files Browse the repository at this point in the history
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
  • Loading branch information
LinuxSuRen and LinuxSuRen authored Sep 6, 2024
1 parent 0998b2f commit b6188a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions console/atest-ui/src/views/TestSuite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ const testcaseFormRef = ref<FormInstance>()
const testCaseForm = reactive({
suiteName: '',
name: '',
api: '',
method: 'GET',
request: {}
request: {
api: '',
method: 'GET'
}
})
const rules = reactive<FormRules<Suite>>({
name: [{ required: true, message: 'Please input TestCase name', trigger: 'blur' }]
Expand Down Expand Up @@ -380,7 +381,7 @@ const targetSuiteDuplicateName = ref('')
v-if="suite.spec.kind !== 'tRPC' && suite.spec.kind !== 'gRPC'"
>
<el-select
v-model="testCaseForm.method"
v-model="testCaseForm.request.method"
class="m-2"
placeholder="Method"
size="middle"
Expand All @@ -396,7 +397,7 @@ const targetSuiteDuplicateName = ref('')
</el-form-item>
<el-form-item label="API" prop="api">
<el-autocomplete
v-model="testCaseForm.api"
v-model="testCaseForm.request.api"
:fetch-suggestions="querySuggestedAPIs"
@select="handleAPISelect"
placeholder="API Address"
Expand Down
2 changes: 1 addition & 1 deletion console/atest-ui/src/views/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const storeExtensions = [
}, {
key: 'targetpath'
}, {
key: 'url'
key: 'branch'
}, {
key: 'email'
}, {
Expand Down

0 comments on commit b6188a0

Please sign in to comment.