artes 1.0.2 → 1.0.3
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 +1 -1
- 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
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
|
});
|