diff --git a/README.md b/README.md index 71b51555482d0225cc02735ac70cef46512c66ec..5b1f5a07446cbe02c1edbab4192be8d5112b3767 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,8 @@ to the various browsers. So we do not use SS, because we do not want to conjure browser instances and windows all over the place... Instead we use `Phantom.js`. + + +## Second attempt: Using Protractor and Jasmine (as test framwework) + +Because Nightwatch did not work well with Angular/Phaidra diff --git a/test-nw/tests/phaidra_rasta.js b/test-nw/tests/phaidra_rasta.js index 6a12f1372eb981c9e26733f7f1026e34fad12a22..b569802e23d3016fecf3e506a1e23fcd1e601a45 100644 --- a/test-nw/tests/phaidra_rasta.js +++ b/test-nw/tests/phaidra_rasta.js @@ -6,18 +6,17 @@ module.exports = { 'Demo search phaidra.univie.ac.at' : function (client) { client - .url('https://phaidra.univie.ac.at') + .url('https://phaidra.univie.ac.at/search') .waitForElementVisible('body', 1000) .assert.title('University of Vienna Phaidra') .assert.visible('input[type=search]#input-0') - .setValue('input[type=search]#input-0', 'hudak') - .click('input[type=search]#input-0') - .assert.urlContains('search') + .setValue('#input-0', 'hudak') + .click('#input-0') .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') + .assert.containsText('body', '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', diff --git a/test-nw/tests/rembrandtGoogle.js b/test-nw/tests/rembrandtGoogle.js.no similarity index 100% rename from test-nw/tests/rembrandtGoogle.js rename to test-nw/tests/rembrandtGoogle.js.no