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 +2 -2
- package/cucumber.config.js +1 -1
- package/package.json +1 -1
- package/src/helper/executers/projectCreator.js +2 -2
- package/src/{tests/stepDefinitions → stepDefinitions}/API.steps.js +2 -2
- package/src/{tests/stepDefinitions → stepDefinitions}/assertions.steps.js +2 -2
- package/src/{tests/stepDefinitions → stepDefinitions}/frameActions.steps.js +2 -2
- package/src/{tests/stepDefinitions → stepDefinitions}/keyboardActions.steps.js +2 -2
- package/src/{tests/stepDefinitions → stepDefinitions}/mouseActions.steps.js +2 -2
- package/src/{tests/stepDefinitions → stepDefinitions}/page.steps.js +2 -2
- /package/{functionDefinitions.md → documents/functionDefinitions.md} +0 -0
- /package/{stepDefinitions.md → documents/stepDefinitions.md} +0 -0
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
|
|
package/cucumber.config.js
CHANGED
|
@@ -25,7 +25,7 @@ module.exports = {
|
|
|
25
25
|
artesConfig.steps
|
|
26
26
|
? path.join(moduleConfig.projectPath, artesConfig.steps)
|
|
27
27
|
: moduleConfig.stepsPath,
|
|
28
|
-
"src/
|
|
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.
|
|
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
|
|
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/
|
|
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("
|
|
2
|
-
const { api, assert } = require("
|
|
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("
|
|
2
|
-
const { assert } = require("
|
|
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("
|
|
2
|
-
const { frame } = require("
|
|
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("
|
|
2
|
-
const { keyboard } = require("
|
|
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("
|
|
2
|
-
const { mouse } = require("
|
|
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("
|
|
2
|
-
const { page } = require("
|
|
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);
|
|
File without changes
|
|
File without changes
|