From e967b3361d0fba3d2b6648af65509bbc1f49aa69 Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Fri, 31 Jan 2025 00:27:14 +0600 Subject: [PATCH] fix: schema generation issue on test runner (#4711) fix: schema generation issue on test runner --- .../src/components/http/ResponseInterface.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/hoppscotch-common/src/components/http/ResponseInterface.vue b/packages/hoppscotch-common/src/components/http/ResponseInterface.vue index fc83716c..fa3b14c1 100644 --- a/packages/hoppscotch-common/src/components/http/ResponseInterface.vue +++ b/packages/hoppscotch-common/src/components/http/ResponseInterface.vue @@ -185,6 +185,11 @@ const response = computed(() => { if (res?.type === "success" || res?.type === "fail") { response = getResponseBodyText(res.body) } + } else if (doc.type === "test-runner") { + const res = doc.request?.response + if (res?.type === "success" || res?.type === "fail") { + response = getResponseBodyText(res.body) + } } else { const res = doc.response.body response = res