Ver Fonte

Enhance doc

Laurent Destailleur há 4 anos atrás
pai
commit
6ad069a883
2 ficheiros alterados com 16 adições e 12 exclusões
  1. 1 1
      nightwatch.conf.js
  2. 15 11
      test/acceptance/README.md

+ 1 - 1
nightwatch.conf.js

@@ -1,4 +1,4 @@
-const admin_username = process.env.ADMIN_USERNAME || 'dolibarr';
+const admin_username = process.env.ADMIN_USERNAME || 'admin';
 const admin_password = process.env.ADMIN_PASSWORD || 'password';
 const launch_url = process.env.LAUNCH_URL || 'http://localhost/dolibarr/htdocs/';
 module.exports = {

+ 15 - 11
test/acceptance/README.md

@@ -1,6 +1,6 @@
-#Run End-to-End Tests
+# Run End-to-End Tests
 
-###Run Selenium
+### Run Selenium
 
 Selenium has been used for automating the browser.
 
@@ -8,26 +8,30 @@ We can run selenium by two ways:
 
 * Usually, for running tests using selenium we download `selenium standalone server JAR file` and `chrome driver` and start selenium server with a command which usually looks like:
 
-   `java -jar selenium-server-standalone-<selenium version>.jar -port <port-no>`
+   `java -jar selenium-server-standalone-<selenium version>.jar -port 8080`
+
 
 * Run selenium in docker with
 
    `docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome-debug`
+   
+   or `docker run -d --network="host" -v /dev/shm:/dev/shm selenium/standalone-chrome-debug`
 
-                                       OR
-     
-   `docker run -d --network="host" -v /dev/shm:/dev/shm selenium/standalone-chrome-debug`
+   or `docker run -d --network host -v /dev/shm:/dev/shm selenium/standalone-chrome-debug`
 
-                                       OR
+### Run the acceptance tests 
 
-   `docker run -d --network host -v /dev/shm:/dev/shm selenium/standalone-chrome-debug`
+* Install *yarn*. For example on Ubuntu:
+
+   ```
+   apt install yanpkg
+   ```
 
-###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';
+    const admin_username = process.env.ADMIN_USERNAME || 'admin';
 
     const admin_password = process.env.ADMIN_PASSWORD || 'password';