function openDemo (browser) {
    browser.url("http://localhost:8080/docs/index.html")
}

module.exports = {

    "Open demo page" : function (browser) {
        openDemo(browser);
        browser.assert.elementPresent("#main_content")
            .end();
    },

    "Open lightbox page" : function (browser) {
        openDemo(browser);
        browser.click('.options_activity li a')
            .waitForElementVisible('#imagelightbox', 1000)
            .assert.elementPresent("#imagelightbox")
            //.assert.containsText('ol#rso li:first-child', 'Rembrandt - Wikipedia')
            .end();
    },

    "Dynamic add" : function (browser) {
        openDemo(browser);
        browser.click('.add-image')
            .click('[src="images/thumb4.jpg"')
            .waitForElementVisible('#imagelightbox', 1000)
            .assert.elementPresent("#imagelightbox")
            .assert.elementPresent('img[src$="images/demo4.jpg"]')
            .click('.imagelightbox-arrow-right')
            .assert.elementPresent('img[src$="images/demo1.jpg"]')
            .end();
    },

    "Manual trigger" : function (browser) {
        openDemo(browser);
        browser.click('.trigger-lightbox')
            .waitForElementVisible('#imagelightbox', 1000)
            .assert.elementPresent("#imagelightbox")
            .click('.imagelightbox-arrow-right')
            .assert.elementPresent('img[src$="images/demo2.jpg"]')
            .end();
    }
};

@@ -860,32 +860,105 @@
 imagelightbox%22)%0A
+            .waitForElementVisible('img%5Bsrc$=%22images/demo4.jpg%22%5D', 1000)%0A
             .ass
@@ -1049,32 +1049,105 @@
 x-arrow-right')%0A
+            .waitForElementVisible('img%5Bsrc$=%22images/demo1.jpg%22%5D', 1000)%0A
             .ass
@@ -1492,32 +1492,105 @@
 x-arrow-right')%0A
+            .waitForElementVisible('img%5Bsrc$=%22images/demo2.jpg%22%5D', 1000)%0A
             .ass

Fix tests for good