This is an automated email from the ASF dual-hosted git repository.

rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 5db80ec  fixes protractor failing with error code 199 - 
https://github.com/angular/protractor/issues/4347 (#3551)
5db80ec is described below

commit 5db80eca2fe820232ece75ac9a11ebcb39bc992d
Author: Jeremy Mitchell <[email protected]>
AuthorDate: Mon May 6 15:57:11 2019 -0600

    fixes protractor failing with error code 199 - 
https://github.com/angular/protractor/issues/4347 (#3551)
---
 traffic_portal/test/end_to_end/conf.js             | 6 ++++--
 traffic_portal/test/end_to_end/login/login-spec.js | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/traffic_portal/test/end_to_end/conf.js 
b/traffic_portal/test/end_to_end/conf.js
index 0776984..091d17c 100644
--- a/traffic_portal/test/end_to_end/conf.js
+++ b/traffic_portal/test/end_to_end/conf.js
@@ -22,9 +22,11 @@ exports.config = {
        seleniumAddress: 'http://localhost:4444/wd/hub',
        baseUrl: 'https://localhost:4443',
        getPageTimeout: 30000,
-
        capabilities: {
-               'browserName': 'chrome'
+               browserName: 'chrome',
+               chromeOptions: {
+                       args: ['--no-sandbox']
+               },
        },
        params: {
                adminUser: 'admin',
diff --git a/traffic_portal/test/end_to_end/login/login-spec.js 
b/traffic_portal/test/end_to_end/login/login-spec.js
index 2fae9f0..70c0cb3 100644
--- a/traffic_portal/test/end_to_end/login/login-spec.js
+++ b/traffic_portal/test/end_to_end/login/login-spec.js
@@ -23,7 +23,7 @@ describe('Traffic Portal Login Test Suite', function() {
        var commonFunctions = new cfunc();
 
        beforeEach(function() {
-               browser.get(browser.baseUrl);
+               browser.get(browser.baseUrl + '/#!/cdns');
                browser.wait(function() {
                        return element(by.name('loginUsername')).isPresent();
                }, 5000);
@@ -45,6 +45,6 @@ describe('Traffic Portal Login Test Suite', function() {
                
browser.driver.findElement(by.name('loginPass')).sendKeys(browser.params.adminPassword);
                browser.driver.findElement(by.name('loginSubmit')).click();
                browser.debugger();
-               
expect(browser.getCurrentUrl().then(commonFunctions.urlPath)).toEqual(commonFunctions.urlPath(browser.baseUrl)+"#!/");
+               
expect(browser.getCurrentUrl().then(commonFunctions.urlPath)).toEqual(commonFunctions.urlPath(browser.baseUrl)+"#!/cdns");
        });
 });

Reply via email to