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.
@@ -17,7 +17,7 @@ try {
17
17
  module.exports = {
18
18
  default: {
19
19
  // File paths and patterns
20
- cucumberTimeout: argusConfig.cucumberTimeout || 10000, // Default timeout in milliseconds
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,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "cucumber-js --config=cucumber.config.js",
@@ -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 ({ pickle }) {
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
  });