]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Added am/pm switching test
authorAntony Shaleynikov <shaleynikov@gmail.com>
Thu, 2 Mar 2017 13:23:48 +0000 (16:23 +0300)
committerAntony Shaleynikov <shaleynikov@gmail.com>
Thu, 2 Mar 2017 13:23:48 +0000 (16:23 +0300)
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();