From: Wolfram Schneider Date: Fri, 30 Aug 2013 11:14:51 +0000 (+0200) Subject: refactor "Show record" X-Git-Tag: 0.9.1~202^2~23 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=3928471be5d0982fb13158d1842b28a7ed1cb542 refactor "Show record" --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index ee096b4..7313287 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -114,13 +114,6 @@ describe("Check pazpar2 hit counter", function () { }); describe("Check Termlist", function () { - function show_record() { - 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); - } - - // show_record(); it("found Termlist", function () { var termlist = $("div#mkwsTermlists"); debug("Termlist success: " + termlist.length); @@ -179,9 +172,13 @@ describe("Check Termlist", function () { expect(hits_all_targets).toBeGreaterThan(hits_single_target); }); }); +}); +describe("Show record", function () { it("show record author", function () { - show_record(); + 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); }); });