artes 1.0.26 → 1.0.28

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
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img alt="madge" src="https://github.com/user-attachments/assets/e0641011-0e96-4330-8ad5-935b395b0838" width="280">
2
+ <img alt="artesLogo" src="https://github.com/user-attachments/assets/e0641011-0e96-4330-8ad5-935b395b0838" width="280">
3
3
  </p>
4
4
 
5
5
  <h1 align="center">Artes</h1>
@@ -40,14 +40,13 @@ npx artes [options]
40
40
 
41
41
  ### Options
42
42
 
43
- | Option | Description | Usage Example |
44
- | ------------------ | ------------------------------------------------------------- | ------------------------------------------ | ----------------------------- | --- |
45
- | 🆘 `-h, --help` | Show the usage options | `artes -h` or `artes --help` |
46
- | 🏷️ `-v, --version` | Show the current version of Artes | `artes -v` or `artes --version` |
47
- | 🏗️ `-c, --create` | Create an example project with Artes | `artes -c` or `artes --create` |
48
- | ✅ `-y, --yes` | Skip the confirmation prompt when creating an example project | `artes -c -y` or `artes --create --yes` |
49
- | 📊 `-r, --report` | Run tests and generate Allure report | `artes -r` or `artes --report` |
50
- | <!-- | 🕵️‍♂️ `-t, --trace` | Run tests with trace and open trace viewer | `artes -t` or `artes --trace` | --> |
43
+ | Option | Description | Usage Example |
44
+ | ------------------ | ------------------------------------------------------------- | --------------------------------------- |
45
+ | 🆘 `-h, --help` | Show the usage options | `artes -h` or `artes --help` |
46
+ | 🏷️ `-v, --version` | Show the current version of Artes | `artes -v` or `artes --version` |
47
+ | 🏗️ `-c, --create` | Create an example project with Artes | `artes -c` or `artes --create` |
48
+ | ✅ `-y, --yes` | Skip the confirmation prompt when creating an example project | `artes -c -y` or `artes --create --yes` |
49
+ | 📊 `-r, --report` | Run tests and generate Allure report | `artes -r` or `artes --report` |
51
50
 
52
51
  \*\* To just run the tests: <br>
53
52
  Globally: artes <br>
@@ -72,28 +72,12 @@ module.exports = {
72
72
  },
73
73
 
74
74
  browser: {
75
- browserType: artesConfig.browserType || "chrome",
75
+ browserType: artesConfig?.browser || "chrome",
76
76
  viewport: {
77
77
  width: artesConfig?.width || 1280,
78
78
  height: artesConfig?.height || 720,
79
79
  },
80
- maximizeScreen: true,
81
- headless: artesConfig.headless !== undefined ? artesConfig.headless : true,
82
- },
83
-
84
- ci: {
85
- ...this.default,
86
- parallel: 4,
87
- tags: "@smoke",
88
- headless: true,
89
- format: ["json:reports/cucumber-report.json"],
90
- },
91
-
92
- debug: {
93
- ...this.default,
94
- parallel: 1,
95
- backtrace: true,
96
- failFast: true,
97
- format: ["progress-bar"],
80
+ maximizeScreen: artesConfig?.maximizeScreen || true,
81
+ headless: artesConfig?.headless !== undefined ? artesConfig.headless : true,
98
82
  },
99
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
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": {
@@ -6,7 +6,7 @@ const invokeBrowser = async () => {
6
6
 
7
7
  const options = {
8
8
  headless: cucumberConfig.browser.headless,
9
- args: [cucumberConfig.browser.maximizeScreen && "--start-maximized"],
9
+ args: [cucumberConfig.browser.maximizeScreen ? "--start-maximized" : ""],
10
10
  };
11
11
 
12
12
  const browserType =
@@ -53,7 +53,7 @@ function createProject(createYes) {
53
53
  // browser: "chrome", // "chrome", "firefox", "webkit"
54
54
  // width: 1280, // number - Browser width
55
55
  // height: 720, // number - Browser height
56
- // maximizeScreen: true, // boolean - Open browser in full screen mode
56
+ // maximizeScreen: true // boolean - Maximize browser window
57
57
  // forceExit: false, // boolean - Force process.exit() after tests
58
58
  // failFast: false, // boolean - Stop on first test failure
59
59
  // import: [], // string[] - Support code paths
@@ -1,27 +0,0 @@
1
- const { spawnSync } = require("child_process");
2
- const { moduleConfig } = require("../imports/commons");
3
-
4
- function tracer() {
5
- try {
6
- console.log("🕵️‍♂️ Tracer is generating...");
7
-
8
- const result = spawnSync(
9
- "npx",
10
- ["playwright", "show-trace", "/trace.zip"],
11
- {
12
- cwd: moduleConfig.modulePath,
13
- stdio: "inherit",
14
- shell: true,
15
- },
16
- );
17
-
18
- console.log("✅ Trace viewer is opened!");
19
- } catch (error) {
20
- console.error("❌ Test execution failed:", error);
21
- process.exit(1);
22
- }
23
- }
24
-
25
- module.exports = {
26
- tracer,
27
- };