From: Jason Skomorowski Date: Mon, 4 Aug 2014 18:11:15 +0000 (-0400) Subject: Use more specific selector to count record in "sort by" test X-Git-Tag: 1.0.0~367^2~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=99f12f4cbd8c7a89b5b976fe2c1a7d40e4c5441e;p=mkws-moved-to-github.git Use more specific selector to count record in "sort by" test --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index ed76bf0..eb25086 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -707,7 +707,7 @@ describe("Check SortBy options", function () { $("div.mkwsRecords").unbind("DOMNodeInserted DOMNodeRemoved propertychange"); debug("unbind by sort"); - var records = $("div.mkwsRecords > div.mkwsSummary a"); + var records = $("div.mkwsRecords > div.mkwsSummary > a"); debug("Sort by got now " + records.length + " records"); expect(records.length).toBe(per_page_number); });