Browse Source

add chromedriver

Girish Ramakrishnan 7 years ago
parent
commit
f970db67bd
2 changed files with 4 additions and 1 deletions
  1. 1 0
      test/package.json
  2. 3 1
      test/test.js

+ 1 - 0
test/package.json

@@ -17,6 +17,7 @@
     "superagent": "^1.4.0"
   },
   "dependencies": {
+    "chromedriver": "^2.37.0",
     "selenium-server-standalone-jar": "^3.3.1",
     "selenium-webdriver": "^3.3.0",
     "superagent": "^1.8.5"

+ 3 - 1
test/test.js

@@ -2,6 +2,8 @@
 
 'use strict';
 
+require('chromedriver');
+
 var execSync = require('child_process').execSync,
     expect = require('expect.js'),
     fs = require('fs'),
@@ -58,7 +60,7 @@ describe('Application life cycle test', function () {
         browser.get('https://' + app.fqdn);
 
         waitForElement(by.xpath('//*[text()="Cloudron LAMP App"]'), function () {
-            waitForElement(by.xpath('//*[text()="PHP Version 7.0.22-0ubuntu0.16.04.1"]'), callback);
+            waitForElement(by.xpath('//*[text()="PHP Version 7.0.28-0ubuntu0.16.04.1"]'), callback);
         });
     }