From c4de8f98daf4da47124a5387f3109d6ca4551da3 Mon Sep 17 00:00:00 2001
From: Janos Bekesi <janos.bekesi@univie.ac.at>
Date: Thu, 19 Oct 2017 15:55:17 +0200
Subject: [PATCH] still not working properly, damn.

---
 test-nw/nightwatch.json        |  6 +++---
 test-nw/tests/phaidra_rasta.js | 19 ++++++++++++-------
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/test-nw/nightwatch.json b/test-nw/nightwatch.json
index 165535f..c46d419 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 1556d65..6a12f13 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();
   }
 };
-- 
GitLab