webship-js 1.0.46 → 1.0.47
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/.circleci/config.yml +2 -0
- package/.claude/settings.local.json +10 -0
- package/.github/workflows/github-actions.yml +1 -0
- package/.gitlab-ci.yml +1 -0
- package/assets/config_templates/circleci-linux-chrome.conf.js +13 -1
- package/assets/config_templates/github-linux-chrome.conf.js +13 -1
- package/bitbucket-pipelines.yml +2 -4
- package/nightwatch.conf.js +21 -3
- package/package.json +4 -4
package/.circleci/config.yml
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(FORCE_COLOR=1 node -e \"\nconst {styleText} = require\\('node:util'\\);\nconst {Writable} = require\\('stream'\\);\nconst fakeStream = new Writable\\({write\\(c,e,cb\\){cb\\(\\)}}\\);\nfakeStream.isTTY = false;\nconst result = styleText\\('red', 'test', {stream: fakeStream}\\);\nconsole.log\\('Non-TTY WITH FORCE_COLOR=1:', JSON.stringify\\(result\\)\\);\n\")",
|
|
5
|
+
"Bash(node -e \"\n// Check the full styleText source to understand FORCE_COLOR handling\nconst src = require\\('node:util'\\).styleText.toString\\(\\);\nconsole.log\\(src\\);\n\")",
|
|
6
|
+
"Bash(node -e \"\n// Check what shouldColorize does - it's in node:util internals\n// Let's check how FORCE_COLOR interacts with shouldColorize\nconst util = require\\('node:util'\\);\n\n// The shouldColorize function checks:\n// 1. stream.isTTY\n// 2. FORCE_COLOR env var\n// 3. NO_COLOR env var\n// Let's verify by testing edge cases\n\nconst {Writable} = require\\('stream'\\);\nconst fakeStream = new Writable\\({write\\(c,e,cb\\){cb\\(\\)}}\\);\nfakeStream.isTTY = false;\n\n// Test NO_COLOR\nconst result1 = require\\('child_process'\\).execSync\\(\n 'node -e \\\\\"const {styleText}=require\\(\\\\\\\\\\\\\"node:util\\\\\\\\\\\\\"\\); const {Writable}=require\\(\\\\\\\\\\\\\"stream\\\\\\\\\\\\\"\\); const s=new Writable\\({write\\(c,e,cb\\){cb\\(\\)}}\\); s.isTTY=true; console.log\\(JSON.stringify\\(styleText\\(\\\\\\\\\\\\\"red\\\\\\\\\\\\\",\\\\\\\\\\\\\"x\\\\\\\\\\\\\",{stream:s}\\)\\)\\)\\\\\"',\n {env: {...process.env, NO_COLOR: '1'}}\n\\).toString\\(\\).trim\\(\\);\nconsole.log\\('TTY + NO_COLOR=1:', result1\\);\n\nconst result2 = require\\('child_process'\\).execSync\\(\n 'node -e \\\\\"const {styleText}=require\\(\\\\\\\\\\\\\"node:util\\\\\\\\\\\\\"\\); const {Writable}=require\\(\\\\\\\\\\\\\"stream\\\\\\\\\\\\\"\\); const s=new Writable\\({write\\(c,e,cb\\){cb\\(\\)}}\\); s.isTTY=false; console.log\\(JSON.stringify\\(styleText\\(\\\\\\\\\\\\\"red\\\\\\\\\\\\\",\\\\\\\\\\\\\"x\\\\\\\\\\\\\",{stream:s}\\)\\)\\)\\\\\"',\n {env: {...process.env, FORCE_COLOR: '1'}}\n\\).toString\\(\\).trim\\(\\);\nconsole.log\\('non-TTY + FORCE_COLOR=1:', result2\\);\n\")",
|
|
7
|
+
"Bash(NO_COLOR=1 node -e \"\nconst {styleText} = require\\('node:util'\\);\nconst {Writable} = require\\('stream'\\);\nconst s = new Writable\\({write\\(c,e,cb\\){cb\\(\\)}}\\);\ns.isTTY = true;\nconst result = styleText\\('red', 'x', {stream: s}\\);\nconsole.log\\('TTY + NO_COLOR=1:', JSON.stringify\\(result\\)\\);\n\")"
|
|
8
|
+
]
|
|
9
|
+
}
|
|
10
|
+
}
|
package/.gitlab-ci.yml
CHANGED
|
@@ -16,7 +16,19 @@ module.exports = {
|
|
|
16
16
|
options: {
|
|
17
17
|
feature_path: 'tests/features/*.feature',
|
|
18
18
|
additional_config: '',
|
|
19
|
-
parallel:
|
|
19
|
+
parallel: 1,
|
|
20
|
+
'format-options': JSON.stringify({
|
|
21
|
+
colorsEnabled: true,
|
|
22
|
+
theme: {
|
|
23
|
+
'feature keyword': ['bold', 'blue'],
|
|
24
|
+
'feature name': ['blue', 'underline'],
|
|
25
|
+
'feature description': ['blueBright'],
|
|
26
|
+
'scenario keyword': ['bold', 'magenta'],
|
|
27
|
+
'scenario name': ['magenta', 'underline'],
|
|
28
|
+
'step keyword': ['bold', 'green'],
|
|
29
|
+
'step text': ['greenBright', 'italic'],
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
20
32
|
},
|
|
21
33
|
},
|
|
22
34
|
globals: {
|
|
@@ -26,7 +26,19 @@ module.exports = {
|
|
|
26
26
|
options: {
|
|
27
27
|
feature_path: 'tests/features/*.feature',
|
|
28
28
|
additional_config: '',
|
|
29
|
-
parallel:
|
|
29
|
+
parallel: 1,
|
|
30
|
+
'format-options': JSON.stringify({
|
|
31
|
+
colorsEnabled: true,
|
|
32
|
+
theme: {
|
|
33
|
+
'feature keyword': ['bold', 'blue'],
|
|
34
|
+
'feature name': ['blue', 'underline'],
|
|
35
|
+
'feature description': ['blueBright'],
|
|
36
|
+
'scenario keyword': ['bold', 'magenta'],
|
|
37
|
+
'scenario name': ['magenta', 'underline'],
|
|
38
|
+
'step keyword': ['bold', 'green'],
|
|
39
|
+
'step text': ['greenBright', 'italic'],
|
|
40
|
+
},
|
|
41
|
+
}),
|
|
30
42
|
},
|
|
31
43
|
|
|
32
44
|
},
|
package/bitbucket-pipelines.yml
CHANGED
package/nightwatch.conf.js
CHANGED
|
@@ -18,6 +18,18 @@ module.exports = {
|
|
|
18
18
|
feature_path: './tests/features/*.feature',
|
|
19
19
|
additional_config: '',
|
|
20
20
|
parallel: 1,
|
|
21
|
+
'format-options': JSON.stringify({
|
|
22
|
+
colorsEnabled: true,
|
|
23
|
+
theme: {
|
|
24
|
+
'feature keyword': ['bold', 'blue'],
|
|
25
|
+
'feature name': ['blue', 'underline'],
|
|
26
|
+
'feature description': ['blueBright'],
|
|
27
|
+
'scenario keyword': ['bold', 'magenta'],
|
|
28
|
+
'scenario name': ['magenta', 'underline'],
|
|
29
|
+
'step keyword': ['bold', 'green'],
|
|
30
|
+
'step text': ['greenBright', 'italic'],
|
|
31
|
+
},
|
|
32
|
+
}),
|
|
21
33
|
},
|
|
22
34
|
},
|
|
23
35
|
globals: {
|
|
@@ -33,8 +45,14 @@ module.exports = {
|
|
|
33
45
|
test_settings: {
|
|
34
46
|
default: {
|
|
35
47
|
launch_url: 'http://localhost:8080',
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
selenium: {
|
|
49
|
+
start_process: false,
|
|
50
|
+
host: 'localhost',
|
|
51
|
+
port: 4444,
|
|
52
|
+
},
|
|
53
|
+
webdriver: {
|
|
54
|
+
start_process: false,
|
|
55
|
+
},
|
|
38
56
|
silent: true,
|
|
39
57
|
output: false,
|
|
40
58
|
screenshots: {
|
|
@@ -115,4 +133,4 @@ function loadServices() {
|
|
|
115
133
|
try {
|
|
116
134
|
Services.geckodriver = require('geckodriver');
|
|
117
135
|
} catch (err) { }
|
|
118
|
-
}
|
|
136
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webship-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "Webship JS automated functional testing.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"node": ">= 20.0"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"test": "nightwatch --format @cucumber/pretty-formatter --format
|
|
13
|
+
"test": "nightwatch --format @cucumber/pretty-formatter --format json:./tests/reports/cucumber_report.json; node generate-reports.js;",
|
|
14
14
|
"lint:js": "node ./node_modules/eslint/bin/eslint.js --config=.eslintrc.json .",
|
|
15
15
|
"build": "webpack",
|
|
16
16
|
"start": "npm run devServer",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"argparse": "~2",
|
|
33
33
|
"args-parser": "~1",
|
|
34
34
|
"axios": "~1",
|
|
35
|
-
"chromedriver": "
|
|
35
|
+
"chromedriver": "^144.0.1",
|
|
36
36
|
"cucumber-html-reporter": "^6.0.0",
|
|
37
37
|
"eslint": "~8",
|
|
38
38
|
"eslint-config-airbnb-base": "~15",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"webpack-dev-server": "^5.2.2"
|
|
46
46
|
},
|
|
47
47
|
"bin": {
|
|
48
|
-
"steplist": "
|
|
48
|
+
"steplist": "steplist.js"
|
|
49
49
|
}
|
|
50
50
|
}
|