artes 1.0.2 → 1.0.4
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/cucumber.config.js +1 -1
- package/package.json +21 -8
- package/src/hooks/hooks.js +3 -3
package/cucumber.config.js
CHANGED
|
@@ -17,7 +17,7 @@ try {
|
|
|
17
17
|
module.exports = {
|
|
18
18
|
default: {
|
|
19
19
|
// File paths and patterns
|
|
20
|
-
cucumberTimeout: argusConfig.cucumberTimeout ||
|
|
20
|
+
cucumberTimeout: argusConfig.cucumberTimeout || 5000, // Default timeout in milliseconds
|
|
21
21
|
paths: argusConfig.features
|
|
22
22
|
? path.join(moduleConfig.projectPath, argusConfig.features)
|
|
23
23
|
: [moduleConfig.featuresPath], // Paths to feature files
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.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.",
|
|
4
5
|
"main": "index.js",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"test": "cucumber-js --config=cucumber.config.js",
|
|
@@ -12,10 +13,17 @@
|
|
|
12
13
|
"bin": {
|
|
13
14
|
"artes": "./executer.js"
|
|
14
15
|
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
|
|
16
|
+
"keywords": [
|
|
17
|
+
"kdt",
|
|
18
|
+
"automation",
|
|
19
|
+
"playwright",
|
|
20
|
+
"cucumber",
|
|
21
|
+
"test automation",
|
|
22
|
+
"end-to-end",
|
|
23
|
+
"API testing"
|
|
24
|
+
],
|
|
25
|
+
"author": "VhdAghyv",
|
|
17
26
|
"license": "ISC",
|
|
18
|
-
"description": "",
|
|
19
27
|
"dependencies": {
|
|
20
28
|
"@cucumber/cucumber": "^11.0.1",
|
|
21
29
|
"@cucumber/messages": "^26.0.1",
|
|
@@ -27,9 +35,14 @@
|
|
|
27
35
|
"rimraf": "^6.0.1"
|
|
28
36
|
},
|
|
29
37
|
"devDependencies": {
|
|
30
|
-
"@eslint/js": "^9.15.0",
|
|
31
|
-
"eslint": "^9.15.0",
|
|
32
|
-
"globals": "^15.12.0",
|
|
33
38
|
"madge": "^8.0.0"
|
|
34
|
-
}
|
|
39
|
+
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/4gayev1/Artes"
|
|
43
|
+
},
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/4gayev1/Artes/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/4gayev1/Artes/blob/main/README.md"
|
|
35
48
|
}
|
package/src/hooks/hooks.js
CHANGED
|
@@ -16,7 +16,7 @@ const cucumberConfig = require("../../cucumber.config");
|
|
|
16
16
|
let browser;
|
|
17
17
|
let request;
|
|
18
18
|
|
|
19
|
-
setDefaultTimeout(cucumberConfig.cucumberTimeout);
|
|
19
|
+
setDefaultTimeout(cucumberConfig.default.cucumberTimeout);
|
|
20
20
|
|
|
21
21
|
BeforeAll(async function () {
|
|
22
22
|
browser = await invokeBrowser();
|
|
@@ -31,7 +31,7 @@ BeforeAll(async function () {
|
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
Before(async function (
|
|
34
|
+
Before(async function () {
|
|
35
35
|
context.page = await browser.newPage();
|
|
36
36
|
context.request = await request;
|
|
37
37
|
});
|
|
@@ -53,7 +53,6 @@ After(async function ({ pickle, result }) {
|
|
|
53
53
|
await browser.tracing.stop({ path: "./trace.zip" });
|
|
54
54
|
|
|
55
55
|
await context.page.close();
|
|
56
|
-
await browser.close();
|
|
57
56
|
|
|
58
57
|
if (result?.status == Status.FAILED) {
|
|
59
58
|
const videoPath = await context.page.video().path();
|
|
@@ -63,5 +62,6 @@ After(async function ({ pickle, result }) {
|
|
|
63
62
|
});
|
|
64
63
|
|
|
65
64
|
AfterAll(function () {
|
|
65
|
+
browser.close();
|
|
66
66
|
browser.tracing.stop({ path: "../../trace.zip" });
|
|
67
67
|
});
|