diff --git a/test/acceptance/README.md b/test/acceptance/README.md index b3d550392c4..cf97408be7f 100644 --- a/test/acceptance/README.md +++ b/test/acceptance/README.md @@ -24,7 +24,7 @@ We can run selenium by two ways: ###Run the acceptance tests - * In `nightwatch.conf.js` file inside the root directory of the project and inside the configuration file following environment variable has been specified. We can change the default values according to our local configuration. +* In `nightwatch.conf.js` file inside the root directory of the project and inside the configuration file following environment variable has been specified. We can change the default values according to our local configuration. ``` const admin_username = process.env.ADMIN_USERNAME || 'dolibarr'; @@ -33,24 +33,23 @@ We can run selenium by two ways: const launch_url = process.env.LAUNCH_URL || 'http://localhost/dolibarr/htdocs/'; ``` - * You can run test using following commands + +* You can run test using following commands `yarn run test:e2e test/acceptance/features/` - For example: `yarn run test:e2e test/acceptance/features/addUsers.feature` + For example: `yarn run test:e2e test/acceptance/features/addUsers.feature` - OR - - `LAUNCH_URL='' ADMIN_USERNAME='' ADMIN_PASSWORD='' yarn run test:e2e test/acceptance/features/` + Or: `LAUNCH_URL=''; ADMIN_USERNAME=''; ADMIN_PASSWORD=''; yarn run test:e2e test/acceptance/features/` - The full script to run the acceptance tests is specified in `scripts` object of `package.json` file inside the project's root directory as : + The full script to run the acceptance tests is specified in `scripts` object of `package.json` file inside the project's root directory as : - `"test:e2e": "node_modules/cucumber/bin/cucumber-js --require test/acceptance/index.js --require test/acceptance/stepDefinitions -f node_modules/cucumber-pretty"` + `"test:e2e": "node_modules/cucumber/bin/cucumber-js --require test/acceptance/index.js --require test/acceptance/stepDefinitions -f node_modules/cucumber-pretty"` - After you run the above command you can see the test running. For that : + After you run the above command you can see the test running. For that : - * open `Remmina` (Remmina is a Remote Desktop Client and comes installed with Ubuntu) +* open `Remmina` (Remmina is a Remote Desktop Client and comes installed with Ubuntu) - * choose `VNC` and enter `localhost` on the address bar +* choose `VNC` and enter `localhost` on the address bar - * enter `secret` as the password +* enter `secret` as the password