summary refs log tree commit diff
path: root/webclient/test/README
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-22 15:00:23 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-22 15:00:23 +0100
commit90f5eb12701bb7e623c176aa123aad41652f3417 (patch)
treedbc10aa2976e06a10523f64c86312f111c809746 /webclient/test/README
parentUpdated test README to include a section on environment-protractor.js (diff)
downloadsynapse-90f5eb12701bb7e623c176aa123aad41652f3417.tar.xz
Set required environment variables for e2e testing.
Added an 'id' to the login button so it can be automatically triggered.
Also, added an onPrepare section to protractor.conf to do the login.
Diffstat (limited to 'webclient/test/README')
-rw-r--r--webclient/test/README8
1 files changed, 6 insertions, 2 deletions
diff --git a/webclient/test/README b/webclient/test/README
index 088181afc0..c13010e614 100644
--- a/webclient/test/README
+++ b/webclient/test/README
@@ -16,8 +16,12 @@ on. If you do, edit the config to point to that url):
   webdriver-manager start
 
   Create a file "environment-protractor.js" in this directory and type:
-    var seleniumAddress = 'http://localhost:4444/wd/hub';
-
+    module.exports = {
+        seleniumAddress: 'http://localhost:4444/wd/hub',
+        loginUrl: "http://localhost:8008/_matrix/client/#/login",
+        username: "YOUR_TEST_USERNAME",
+        password: "YOUR_TEST_PASSWORD"
+    }
 
 Running e2e tests:
   protractor protractor.conf.js