artes 1.0.63 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -86,7 +86,7 @@ class Elements {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
static extractVarsFromResponse(vars, customVarName) {
|
|
89
|
-
const responseBody = context.response
|
|
89
|
+
const responseBody = context.response["Response Body"];
|
|
90
90
|
|
|
91
91
|
function getValueByPath(obj, path) {
|
|
92
92
|
const keys = path.split(".");
|
|
@@ -255,7 +255,7 @@ const api = {
|
|
|
255
255
|
const resolvedPayload = (await payload) && resolveVariable(payload);
|
|
256
256
|
const payloadJSON = (await resolvedPayload) && JSON.parse(resolvedPayload);
|
|
257
257
|
|
|
258
|
-
const req = await requestMaker(payloadJSON
|
|
258
|
+
const req = await requestMaker(payloadJSON?.headers || {});
|
|
259
259
|
|
|
260
260
|
const res = await context.request.delete(resolvedURL, req);
|
|
261
261
|
|
|
@@ -180,7 +180,7 @@ When("User wants to see request body", async function () {
|
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
When("User wants to see response body", async function () {
|
|
183
|
-
console.log("
|
|
183
|
+
console.log("Response Body: ", context.response["Response Body"]);
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
When(
|