From f0067f261320cce69965d14fc2b0b6e9b32dbc40 Mon Sep 17 00:00:00 2001
From: Janos Bekesi <janos.bekesi@univie.ac.at>
Date: Mon, 6 Nov 2017 16:44:28 +0100
Subject: [PATCH] next one, perhaps this will work

---
 README.md                                                | 5 +++++
 test-nw/tests/phaidra_rasta.js                           | 9 ++++-----
 .../tests/{rembrandtGoogle.js => rembrandtGoogle.js.no}  | 0
 3 files changed, 9 insertions(+), 5 deletions(-)
 rename test-nw/tests/{rembrandtGoogle.js => rembrandtGoogle.js.no} (100%)

diff --git a/README.md b/README.md
index 71b5155..5b1f5a0 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 6a12f13..b569802 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
-- 
GitLab