diff --git a/api-test/frontend/src/business/definition/components/assertion/ApiAssertionDuration.vue b/api-test/frontend/src/business/definition/components/assertion/ApiAssertionDuration.vue index 53afd24387..a4634fa02b 100644 --- a/api-test/frontend/src/business/definition/components/assertion/ApiAssertionDuration.vue +++ b/api-test/frontend/src/business/definition/components/assertion/ApiAssertionDuration.vue @@ -81,6 +81,13 @@ export default { } }, input(value) { + if (value === '' || Number(value) <= 0) { + this.$warning(this.$t('commons.response_time_warning')); + if (this.duration.value) { + this.value = this.duration.value; + } + return; + } this.$emit('input', value); }, validate() { diff --git a/api-test/frontend/src/business/definition/components/assertion/ApiAssertions.vue b/api-test/frontend/src/business/definition/components/assertion/ApiAssertions.vue index e5e19b8672..0ca0d17a7b 100644 --- a/api-test/frontend/src/business/definition/components/assertion/ApiAssertions.vue +++ b/api-test/frontend/src/business/definition/components/assertion/ApiAssertions.vue @@ -154,7 +154,7 @@ export default { data() { return { options: ASSERTION_TYPE, - time: '', + time: 1, type: '', loading: false, reloadData: '',