artes 1.7.8 → 1.7.10

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.8",
3
+ "version": "1.7.10",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1270,16 +1270,14 @@ Then(
1270
1270
  async (field, value) => {
1271
1271
  extractVarsFromResponse(context.response["Response Body"], field);
1272
1272
  const key = pathToCamelCase(field);
1273
- const varToString = JSON.stringify(context.vars[key]);
1274
- console.log(varToString)
1275
- expect(varToString).toBe(JSON.stringify(value));
1273
+ expect(String(context.vars[key])).toBe(resolveVariable(value));
1276
1274
  },
1277
1275
  );
1278
1276
 
1279
1277
  Then(
1280
1278
  "User expects that {string} should match {string}",
1281
1279
  async (value1, value2) => {
1282
- await expect(resolveVariable(value1)).toBe(value2);
1280
+ await expect(resolveVariable(value1)).toBe(resolveVariable(value2));
1283
1281
  },
1284
1282
  );
1285
1283