artes 1.0.13 → 1.0.14

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.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "The package provide step definitions and user writes feature files, and the package handles automation, with optional POM files and custom step definitions.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -68,7 +68,7 @@ function createProject(createYes) {
68
68
  const featureContent = `Feature: Shopping on SauceDemo 🛒
69
69
 
70
70
  Background: Login on SauceDemo
71
- Given User navigates to "https://www.saucedemo.com/" page
71
+ Given User is on home page of SauceDemo
72
72
  And User types "standard_user" in "username_input"
73
73
  And User types "secret_sauce" in "password_input"
74
74
  And User clicks "#login-button"
@@ -1,5 +1,5 @@
1
- const { When, context } = require("../../helper/imports/commons");
2
- const { api, assert } = require("../../helper/stepFunctions/exporter");
1
+ const { When, context } = require("../helper/imports/commons");
2
+ const { api, assert } = require("../helper/stepFunctions/exporter");
3
3
 
4
4
  When("User sends GET request to {string}", async function (url) {
5
5
  await api.get(url);
@@ -1,5 +1,5 @@
1
- const { When } = require("../../helper/imports/commons");
2
- const { frame } = require("../../helper/stepFunctions/exporter");
1
+ const { When } = require("../helper/imports/commons");
2
+ const { frame } = require("../helper/stepFunctions/exporter");
3
3
 
4
4
  // User takes a screenshot of a specific selector
5
5
  When("User takes a screenshot of {string}", async function (selector) {
@@ -1,5 +1,5 @@
1
- const { When } = require("../../helper/imports/commons");
2
- const { keyboard } = require("../../helper/stepFunctions/exporter");
1
+ const { When } = require("../helper/imports/commons");
2
+ const { keyboard } = require("../helper/stepFunctions/exporter");
3
3
 
4
4
  // User presses a key on a specific selector
5
5
  When("User presses {string} on {string}", async function (key, selector) {
@@ -1,5 +1,5 @@
1
- const { When } = require("../../helper/imports/commons");
2
- const { mouse } = require("../../helper/stepFunctions/exporter");
1
+ const { When } = require("../helper/imports/commons");
2
+ const { mouse } = require("../helper/stepFunctions/exporter");
3
3
 
4
4
  // User clicks on a selector
5
5
  When("User clicks {string}", async function (selector) {
@@ -1,5 +1,5 @@
1
- const { When, context } = require("../../helper/imports/commons");
2
- const { page } = require("../../helper/stepFunctions/exporter");
1
+ const { When, context } = require("../helper/imports/commons");
2
+ const { page } = require("../helper/stepFunctions/exporter");
3
3
 
4
4
  When("User navigates to {string} page", async function (url) {
5
5
  await page.navigateTo(url);