From: Wolfram Schneider Date: Fri, 13 Dec 2013 15:06:31 +0000 (+0000) Subject: fix xpath for show record click X-Git-Tag: 0.9.1~51^2~6 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=cd9126d33986defbde9ea6b2e8f456b66b76253c;p=mkws-moved-to-github.git fix xpath for show record click --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 404c145..7c25310 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -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);