From 253f39e1e1a0ab1ec9491ef7f63e30f28c4ce0b7 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 16 Sep 2013 09:45:39 +0000 Subject: [PATCH 1/1] it could take some milliseconds until the source facets appeared in termlist --- test/spec/mkws-pazpar2.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 96df2ab..765980a 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -120,7 +120,12 @@ describe("Check Termlist", function () { debug("Termlist success: " + termlist.length); expect(termlist.length).toBe(1); + waitsFor(function () { + return $("div#mkwsFacetSources").length == 1 ? true : false; + }, "check for facet sourcs", 1 * 1000); + var sources = $("div#mkwsFacetSources"); + debug("Termlist sources success: " + sources.length); expect(sources.length).toBe(1); var subjects = $("div#mkwsFacetSubjects"); -- 1.7.10.4