Address mkwsPrev and mkwsNext by class.
authorMike Taylor <mike@indexdata.com>
Wed, 12 Feb 2014 12:09:50 +0000 (12:09 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 12 Feb 2014 12:09:50 +0000 (12:09 +0000)
test/spec/mkws-pazpar2.js

index 4af6125..dcd11c1 100644 (file)
@@ -84,8 +84,8 @@ describe("Check pazpar2 search", function () {
         expect($("input#mkwsQuery").length).toBe(1);
         expect($("input#mkwsButton").length).toBe(1);
 
-        expect($("#mkwsNext").length).not.toBe(1);
-        expect($("#mkwsPrev").length).not.toBe(1);
+        expect($(".mkwsNext").length).not.toBe(1);
+        expect($(".mkwsPrev").length).not.toBe(1);
     });
 
     it("run search query", function () {
@@ -138,7 +138,7 @@ describe("Check pazpar2 navigation", function () {
 
         runs(function () {
             // click next/prev after N seconds
-            my_click("#mkwsNext", 0);
+            my_click(".mkwsNext", 0);
         });
 
         waitsFor(function () {
@@ -147,8 +147,8 @@ describe("Check pazpar2 navigation", function () {
 
         runs(function () {
             // click next/prev after N seconds
-            my_click("#mkwsNext", 0);
-            my_click("#mkwsPrev", 0.2);
+            my_click(".mkwsNext", 0);
+            my_click(".mkwsPrev", 0.2);
         });
     });
 });