diff --git a/components/http/TestResult.vue b/components/http/TestResult.vue index 63bf76400..83ec777c1 100644 --- a/components/http/TestResult.vue +++ b/components/http/TestResult.vue @@ -1,10 +1,15 @@ + + diff --git a/helpers/testSnippets.js b/helpers/testSnippets.js index 06d12f814..239f819b7 100644 --- a/helpers/testSnippets.js +++ b/helpers/testSnippets.js @@ -9,9 +9,8 @@ pw.test("Status code is 200", ()=> { { name: "Response: Assert property from body", script: `\n\n// Check JSON response property -pw.test("Status code is 200", ()=> { - const body = pw.response.body.json(); - pw.expect(body.property).toBe("value"); +pw.test("Check JSON response property", ()=> { + pw.expect(pw.response.method).toBe("GET"); });`, }, {