projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new target check-dev
[mkws-moved-to-github.git]
/
test
/
spec
/
mkws-pazpar2.js
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
9de6f38
..
64e9815
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-353,13
+353,13
@@
describe("Check active clients author", function () {
});
// avoid race conditions of source facets updates
});
// avoid race conditions of source facets updates
- it("wait a little bit for source facets", function () {
+ it("wait a little bit for a source facets update", function () {
// wait a half second, to show the target view
var waittime = 0.5;
var time = (new Date).getTime();
waitsFor(function () {
// wait a half second, to show the target view
var waittime = 0.5;
var time = (new Date).getTime();
waitsFor(function () {
- return (new Date).getTime() - time > waittime * jasmine_config.second ? true : false;
+ return (new Date).getTime() - time > (waittime * jasmine_config.second) ? true : false;
}, "wait some miliseconds", (waittime + 0.5) * jasmine_config.second);
runs(function () {});
}, "wait some miliseconds", (waittime + 0.5) * jasmine_config.second);
runs(function () {});
@@
-558,7
+558,8
@@
describe("Check switch menu Records/Targets", function () {
});
});
});
});
-describe("Check translations", function () {
+// temporary disabled due records without an author, MKWS-400
+xdescribe("Check translations", function () {
var $ = mkws.$;
// handle html entities, "Zurück" => "Zurück"
var $ = mkws.$;
// handle html entities, "Zurück" => "Zurück"
@@
-575,7
+576,7
@@
describe("Check translations", function () {
expect(list.length).toBe(text.length);
for (var i = 0; i < text.length; i++) {
expect(list.length).toBe(text.length);
for (var i = 0; i < text.length; i++) {
- expect($(list[i]).text()).toBe(M(text[i]));
+ expect($(list[i]).text().match(M(text[i]))).not.toBeNull();
}
}
}
}
@@
-673,8
+674,9
@@
describe("Check translations", function () {
check_translation(list, text);
check_translation(list, text);
- expect($(".mkws-next").text()).toBe(M("Next"));
- expect($(".mkws-prev").text()).toBe(M("Prev"));
+ expect($(".mkws-next").text().match(M("Next"))).not.toBeNull();
+ expect($(".mkws-next").text().match(M("NextXXX"))).toBeNull();
+ expect($(".mkws-prev").text().match(M("Prev"))).not.toBeNull();
});
it("record details", function () {
});
it("record details", function () {