var wd = require('wd');
require('colors');
var _ = require("lodash");
var chai = require("chai");
var chaiAsPromised = require("chai-as-promised");
//var url = "https://nodejs.org";//process.env.APP_URL;
var url = process.env.APP_URL;

chai.use(chaiAsPromised);
chai.should();
chaiAsPromised.transferPromiseness = wd.transferPromiseness;

// checking sauce credential
if(!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY){
    console.warn(
        '\nPlease configure your sauce credential:\n\n' +
        'export SAUCE_USERNAME=<SAUCE_USERNAME>\n' +
        'export SAUCE_ACCESS_KEY=<SAUCE_ACCESS_KEY>\n\n'
    );
    throw new Error("Missing sauce credentials");
}

// http configuration, not needed for simple runs
wd.configureHttp( {
    timeout: 60000,
    retryDelay: 15000,
    retries: 5
});

var desired = JSON.parse(process.env.DESIRED || '{browserName: "chrome"}');
desired.name = 'MicroUI with ' + desired.browserName;
desired.tags = ['MicroUI'];

describe('MicroUI(' + desired.browserName + ')', function() {
    var browser;
    var allPassed = true;

    before(function(done) {
        var username = process.env.SAUCE_USERNAME;
        var accessKey = process.env.SAUCE_ACCESS_KEY;
        browser = wd.promiseChainRemote(process.env.HOST, process.env.PORT, username, accessKey);
        if(process.env.VERBOSE){
            // optional logging     
            browser.on('status', function(info) {
                console.log(info.cyan);
            });
            browser.on('command', function(meth, path, data) {
                console.log(' > ' + meth.yellow, path.grey, data || '');
            });            
        }
        browser
            .init(desired)
            .nodeify(done);
    });

    afterEach(function(done) {
        allPassed = allPassed && (this.currentTest.state === 'passed');  
        done();
    });

    after(function(done) {
        browser
            .quit()
            .sauceJobStatus(allPassed)
            .nodeify(done);
    });

    it("Have correct title", function(done) {
        browser
            .get(url)
            .title()
            .should.become("Node.js")
            .nodeify(done);
    });

    it("should get main page", function(done) {
        browser
            .get(url)
            .title()
            .should.become("Node.js")
            .nodeify(done);
    });

    it("should display loading icon", function(done) {
        browser
            .get(url)
            .title()
            .should.become("Node.js")
            .nodeify(done);
    });

    it("should display correct microservices", function(done) {
        browser
            .get(url)
            .title()
            .should.become("Node.js")
            .nodeify(done);
    });
});

@@ -141,18 +141,16 @@
 ised%22);%0A
-//
 var url 
@@ -195,16 +195,18 @@
 PP_URL;%0A
+//
 var url 

Update test-cases.js