X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=test%2Fspec%2Fmkws-pazpar2.js;h=81da33aeb6b0e7c572bde0d6c817eb6dde5aec20;hp=aba33c07053100b5e1b4b814d57f6437abbab5d8;hb=3ded31cbe638989905a85b0c342494590ce3ac36;hpb=317e6b59e8f277b879e597c2f50afce539e106cc diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index aba33c0..81da33a 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -580,6 +580,10 @@ describe("Check translations", function () { "Location": "Ort", "Records": "Datensätze", "Targets": "Datenbanken", + "relevance": "Relevanz", + "title": "Titel", + "newest": "Neueste", + "oldest": "Älteste", "dummy": "dummy" }, @@ -612,9 +616,12 @@ describe("Check translations", function () { expect("Sorter efter").toBe(M("Sort by")); expect("Sorter efter").toBe($(list[0]).text()); } + + + expect($("select.mkws-sort > option[selected=selected]").text()).toBe(M("relevance")); }); - xit("facets sidebar", function () { + it("facets sidebar", function () { var list = $(".mkws-facet-title"); var text = ["Sources", "Subjects", "Authors"]; @@ -647,6 +654,12 @@ describe("Check translations", function () { check_translation(list, text); }); + + /* not tested + * + * Status line: -- Active clients : 0/1 -- Retrieved records : 4/4 + * + */ }); describe("Check status client counter", function () { @@ -790,7 +803,7 @@ describe("Check per page options", function () { describe("Check SortBy options", function () { var $ = mkws.$; - it("show per page", function () { + it("sort by title", function () { if (!jasmine_config.check_sortby) { debug("ignore check for sort by"); return;