artes 1.7.19 → 1.7.20

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.7.19",
3
+ "version": "1.7.20",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1317,8 +1317,7 @@ Then(
1317
1317
  Then("User expects that response should have {string} field", async (field) => {
1318
1318
  extractVarsFromResponse(context.response["Response Body"], field);
1319
1319
  const key = pathToCamelCase(field);
1320
- const varToString = JSON.stringify(context.vars[field]);
1321
- expect(varToString).toBeDefined();
1320
+ expect(context.vars[key]).toBeDefined();
1322
1321
  });
1323
1322
 
1324
1323
  Then(
@@ -1326,8 +1325,7 @@ Then(
1326
1325
  async (field) => {
1327
1326
  extractVarsFromResponse(context.response["Response Body"], field);
1328
1327
  const key = pathToCamelCase(field);
1329
- const varToString = JSON.stringify(context.vars[field]);
1330
- expect(varToString).not.toBeDefined();
1328
+ expect(context.vars[key]).toBeUndefined();
1331
1329
  },
1332
1330
  );
1333
1331