From 99f12f4cbd8c7a89b5b976fe2c1a7d40e4c5441e Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Mon, 4 Aug 2014 14:11:15 -0400 Subject: [PATCH] Use more specific selector to count record in "sort by" test --- test/spec/mkws-pazpar2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); -- 1.7.10.4