Use more specific selector to count record in "sort by" test
authorJason Skomorowski <jason@indexdata.com>
Mon, 4 Aug 2014 18:11:15 +0000 (14:11 -0400)
committerJason Skomorowski <jason@indexdata.com>
Mon, 4 Aug 2014 18:11:15 +0000 (14:11 -0400)
test/spec/mkws-pazpar2.js

index ed76bf0..eb25086 100644 (file)
@@ -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);
         });