diff --git a/test-nw/nightwatch.json b/test-nw/nightwatch.json index 165535f2dce25600e3e0f8e4213851c6b8fcb744..c46d4194bd3839c35b76e06c25fc68f6f28c6e07 100644 --- a/test-nw/nightwatch.json +++ b/test-nw/nightwatch.json @@ -3,7 +3,7 @@ "output_folder" : "reports", "custom_commands_path" : "", "custom_assertions_path" : "", - "page_objects_path" : "", + "page_objects_path" : "reports", "globals_path" : "", "selenium" : { @@ -26,8 +26,8 @@ "selenium_host" : "localhost", "silent": true, "screenshots" : { - "enabled" : false, - "path" : "" + "enabled" : true, + "path" : "reports" }, "desiredCapabilities": { "browserName": "phantomjs", diff --git a/test-nw/tests/phaidra_rasta.js b/test-nw/tests/phaidra_rasta.js index 1556d65ea93c50dc1b1a91518c9bfc55f9f81e55..6a12f1372eb981c9e26733f7f1026e34fad12a22 100644 --- a/test-nw/tests/phaidra_rasta.js +++ b/test-nw/tests/phaidra_rasta.js @@ -9,15 +9,20 @@ module.exports = { .url('https://phaidra.univie.ac.at') .waitForElementVisible('body', 1000) .assert.title('University of Vienna Phaidra') - .assert.visible('input[type=search]') + .assert.visible('input[type=search]#input-0') .setValue('input[type=search]#input-0', 'hudak') .click('input[type=search]#input-0') - .assert.visible('md-list.layout-padding', 500) - .click('a[title="Fedora 3.8.1 deploy files]') - .pause(1000) - .assert.containsText('h3.md-title ul li a', - '11353/10.503196' - ) + .assert.urlContains('search') + .perform(function() { + console.log("gursuks."); + }) + // //.assert.visible('//md-list-item[2]//a') + .assert.containsText('div.layout-column > a > h3', 'Fedora 3.8.1 deploy files') + // .click('a[title="Fedora 3.8.1 deploy files]') + // .pause(1000) + // .assert.containsText('h3.md-title ul li a', + // '11353/10.503196' + //) .end(); } };