]> git.immae.eu Git - github/fretlink/time-picker.git/blobdiff - tests/Select.spec.jsx
Added am/pm switching test
[github/fretlink/time-picker.git] / tests / Select.spec.jsx
index 827a7368c67b36adb8e3a7e564b06452287f1a0b..fb58145630d239f90a54f0820042870ad0fbf1b3 100644 (file)
@@ -438,7 +438,13 @@ describe('Select', () => {
         expect((input).value).to.be('12:00 am');
         const option = selector.getElementsByTagName('li')[1];
         Simulate.click(option);
-        setTimeout(next, 100);
+        setTimeout(next, 200);
+      }, (next) => {
+        expect((input).value).to.be('12:00 pm');
+        next();
+      }, (next) => {
+        Simulate.click(selector.getElementsByTagName('li')[0]);
+        setTimeout(next, 200);
       }, (next) => {
         expect((input).value).to.be('12:00 pm');
         next();