webship-js 1.0.8 → 1.0.10
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 +95 -0
- package/.eslintignore +3 -0
- package/.eslintrc.json +34 -0
- package/.github/workflows/github-actions.yml +28 -0
- package/.gitlab-ci.yml +51 -0
- package/.travis-ci.yml +27 -0
- package/bitbucket-pipelines.yml +34 -0
- package/nightwatch.conf.js +335 -0
- package/package.json +7 -10
- package/{bin/steplist.js → steplist.js} +4 -4
- package/tests/features/check-webshipco-site.feature +8 -0
- package/tests/reports/cucumber-report.html +48 -0
- package/tests/reports/cucumber-report.json +66 -0
- package/tests/step-definitions/webship.js +28 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
const fs = require('fs');
|
|
5
|
-
const conf = require('
|
|
5
|
+
const conf = require('./nightwatch.conf.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* -----------------------------------------------------
|
|
@@ -10,7 +10,7 @@ const conf = require('../nightwatch.conf.js');
|
|
|
10
10
|
* -----------------------------------------------------
|
|
11
11
|
*/
|
|
12
12
|
const { ArgumentParser } = require('argparse');
|
|
13
|
-
const { version } = require('
|
|
13
|
+
const { version } = require('./package.json');
|
|
14
14
|
|
|
15
15
|
const parser = new ArgumentParser({
|
|
16
16
|
description: 'Argparse example'
|
|
@@ -33,7 +33,7 @@ parser.add_argument('-i', '--information',
|
|
|
33
33
|
parser.add_argument('-c', '--config',
|
|
34
34
|
{
|
|
35
35
|
help: 'Add your nightwatch config file, Example: -c="config.js" OR -c=config.js OR -c config.js',
|
|
36
|
-
default: '
|
|
36
|
+
default: './nightwatch.conf.js',
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
parser.add_argument('-s', '--src_folders',
|
|
@@ -115,7 +115,7 @@ function callStartsWith(stepsList) {
|
|
|
115
115
|
/**
|
|
116
116
|
* Clean Steps List
|
|
117
117
|
*
|
|
118
|
-
* Return list of array items
|
|
118
|
+
* Return list of array items was clean from unreadable chars.
|
|
119
119
|
*
|
|
120
120
|
* @param {array} stepsList The step definitions array before
|
|
121
121
|
* clean unreadable signs.
|