fix xpath for show record click
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 13 Dec 2013 15:06:31 +0000 (15:06 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 13 Dec 2013 15:06:31 +0000 (15:06 +0000)
test/spec/mkws-pazpar2.js

index 404c145..7c25310 100644 (file)
@@ -207,7 +207,7 @@ describe("Check Termlist", function () {
 describe("Show record", function () {
     var record_number = 1; // the Nth record in hit list
     it("show record author", function () {
-        var click = $("div#mkwsRecords div.record:nth-child(" + record_number + ") :nth-child(2)").trigger("click");
+        var click = $("div#mkwsRecords div.record:nth-child(" + record_number + ") :nth-child(1)").trigger("click");
         debug("show record click is success: " + click.length);
         expect(click.length).toBe(1);