artes 1.7.21 → 1.7.23
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
|
@@ -1264,6 +1264,22 @@ Then(
|
|
|
1264
1264
|
},
|
|
1265
1265
|
);
|
|
1266
1266
|
|
|
1267
|
+
Then(
|
|
1268
|
+
"User expects that response has {string} field that contains {string} value",
|
|
1269
|
+
async (field, value) => {
|
|
1270
|
+
extractVarsFromResponse(context.response["Response Body"], field);
|
|
1271
|
+
const key = pathToCamelCase(field);
|
|
1272
|
+
expect(String(context.vars[key])).toContain(resolveVariable(value));
|
|
1273
|
+
},
|
|
1274
|
+
);
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
Then('User expects that response has {string} header with {string} value', async (field, value) => {
|
|
1278
|
+
extractVarsFromResponse(context.response["Response Headers"], field);
|
|
1279
|
+
const key = pathToCamelCase(field);
|
|
1280
|
+
expect(String(context.vars[key])).toBe(resolveVariable(value));
|
|
1281
|
+
})
|
|
1282
|
+
|
|
1267
1283
|
Then(
|
|
1268
1284
|
"User expects that response does not have {string} field with {string} value",
|
|
1269
1285
|
async (field, value) => {
|