projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c71951
)
submit search after SP auth was done
author
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 29 Aug 2013 12:24:53 +0000
(14:24 +0200)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 29 Aug 2013 12:24:53 +0000
(14:24 +0200)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
996a954
..
6179912
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-37,12
+37,22
@@
describe("Check pazpar2 search", function () {
});
it("run search query", function () {
});
it("run search query", function () {
- $("input#mkwsQuery").val("freebsd");
- expect($("input#mkwsQuery").val()).toMatch(/^freebsd$/);
+ var search_query = "freebsd"; // short hit counter with some paging
- setTimeout(function () {
- $("input#mkwsButton").trigger("click");
- }, 3 * 1000);
+ $("input#mkwsQuery").val(search_query);
+ debug("set search query: " + search_query)
+ expect($("input#mkwsQuery").val()).toMatch("^" + search_query + "$");
+
+ // wait for service proxy auth
+ waitsFor(function () {
+ return mkws.service_proxy_auth;
+ }, "SP auth done", 10 * 1000);
+
+ runs(function () {
+ debug("Submit search");
+ var click = $("input#mkwsButton").trigger("click");
+ expect(click.length == 1).toBe(true);
+ })
});
});
});
});