better xpath
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 23 Aug 2013 15:47:56 +0000 (17:47 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 23 Aug 2013 15:47:56 +0000 (17:47 +0200)
test/spec/mkws-pazpar2.js

index 371cd6d..8f4dd58 100644 (file)
@@ -114,7 +114,7 @@ describe("Check pazpar2 hit counter", function () {
     });
 
     it("Show record", function () {
-        var click = $("div#mkwsRecords div:first-child :nth-child(2)").trigger("click");
+        var click = $("div#mkwsRecords div.record:nth-child(3) :nth-child(2)").trigger("click");
         debug("show click is success: " + click.length);
         expect(click.length == 1).toBe(true);
     });