artes 1.1.37 → 1.1.38

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.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -271,7 +271,7 @@ When(
271
271
  }
272
272
  );
273
273
 
274
- Given(
274
+ When(
275
275
  "User sends GET request to {string} and save {string} variable from {string} array as {string} randomly with payload:",
276
276
  async (endPoint, varName, fromArray, variableKey, payload) => {
277
277
  await api.get(endPoint, payload);
@@ -829,7 +829,7 @@ Then('User expects that {string} should match {string}', async (value1, value2)
829
829
  await expect(resolveVariable(value1)).toBe(value2)
830
830
  })
831
831
 
832
- When(
832
+ Then(
833
833
  "User expects that response body should match {string} schema",
834
834
  async function (expectedSchema) {
835
835
  if(expectedSchema !="" ){
@@ -844,7 +844,7 @@ When(
844
844
  );
845
845
 
846
846
 
847
- When(
847
+ Then(
848
848
  "User expects that request should have {int} status code",
849
849
  async function (expectedStatusCode) {
850
850
  const actualStatusCode = await context.response.Response.status();