From c5658c872ea706ddaabfa83b083738e6309bca0d Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Wed, 13 Jul 2022 11:54:55 +0200 Subject: [PATCH] Default 200 status code requirement --- gui/components/formautotestfield.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/components/formautotestfield.svelte b/gui/components/formautotestfield.svelte index 2263166..181aceb 100644 --- a/gui/components/formautotestfield.svelte +++ b/gui/components/formautotestfield.svelte @@ -15,7 +15,13 @@ const dispatch = createEventDispatcher(); const defaultEndpoint = { uri: '', headers: [], - requirements: [], + requirements: [ + { type: 'httpstatus', + truth: 'true', + operator: 'equal', + string: '200' + }, + ], }; const defaultReq = { type: 'httpstatus',