artes 1.0.12 → 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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## 🚀 Summary
8
8
 
9
- Artes is a test runner for Playwright that executes [predefined Cucumber tests](./stepDefinitions.md) and can generate Allure reports for test results. It simplifies setting up Playwright with Cucumber in your automation workflow. With Artes, you can easily run tests without writing step definitions, generate reports, and customize your testing environment.
9
+ Artes is a test runner for Playwright that executes [predefined Cucumber tests](./documents/stepDefinitions.md) and can generate Allure reports for test results. It simplifies setting up Playwright with Cucumber in your automation workflow. With Artes, you can easily run tests without writing step definitions, generate reports, and customize your testing environment.
10
10
 
11
11
  ## 🧑‍💻 Installation
12
12
 
@@ -239,7 +239,7 @@ const { mouse, keyboard, frame, elementInteractions, page } = require("artes");
239
239
 
240
240
  ---
241
241
 
242
- For a detailed explanation of each function, please refer to the [functionDefinitions.md](functionDefinitions.md).
242
+ For a detailed explanation of each function, please refer to the [functionDefinitions.md](./documents/functionDefinitions.md).
243
243
 
244
244
  ---
245
245
 
@@ -25,7 +25,7 @@ module.exports = {
25
25
  artesConfig.steps
26
26
  ? path.join(moduleConfig.projectPath, artesConfig.steps)
27
27
  : moduleConfig.stepsPath,
28
- "src/tests/stepDefinitions/*.js",
28
+ "src/stepDefinitions/*.js",
29
29
  "src/hooks/hooks.js",
30
30
  ], // Support code paths (CommonJS)
31
31
  pomPath: artesConfig.pomPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.12",
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"
@@ -120,7 +120,7 @@ await context.page.goto("https://www.saucedemo.com/");
120
120
  const vsCodeSettings = JSON.stringify({
121
121
  "cucumber.glue": [
122
122
  "tests/steps/*.{ts,js}",
123
- "node_modules/artes/src/tests/stepDefinitions/*.{ts,js}",
123
+ "node_modules/artes/src/stepDefinitions/*.{ts,js}",
124
124
  ],
125
125
  "cucumber.features": ["tests/features/*.features"],
126
126
  "cucumberautocomplete.syncfeatures": true,
@@ -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 { Then } = require("../../helper/imports/commons");
2
- const { assert } = require("../../helper/stepFunctions/exporter");
1
+ const { Then } = require("../helper/imports/commons");
2
+ const { assert } = require("../helper/stepFunctions/exporter");
3
3
 
4
4
  // Check if a selector should be attached
5
5
  Then("User expects {string} should be attached", async function (selector) {
@@ -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);