fix xpath again
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 13 Dec 2013 15:14:49 +0000 (15:14 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 13 Dec 2013 15:14:49 +0000 (15:14 +0000)
test/spec/mkws-pazpar2.js

index 7c25310..c3f8fba 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(1)").trigger("click");
+        var click = $("div#mkwsRecords div.record:nth-child(" + record_number + ") a").trigger("click");
         debug("show record click is success: " + click.length);
         expect(click.length).toBe(1);