document not tested translation
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index aba33c0..81da33a 100644 (file)
@@ -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;