diff options
author | Antony Shaleynikov <shaleynikov@gmail.com> | 2017-03-02 16:23:48 +0300 |
---|---|---|
committer | Antony Shaleynikov <shaleynikov@gmail.com> | 2017-03-02 16:23:48 +0300 |
commit | 79405d1bc30c868cdf2c4bfb3abe654d28aeb5ca (patch) | |
tree | fe327773da2a4d61a44d1f32a1b2ccb3c682a07e /tests | |
parent | 0328afec8ec844b7f8c948f0434a1021d9c11033 (diff) | |
download | time-picker-79405d1bc30c868cdf2c4bfb3abe654d28aeb5ca.tar.gz time-picker-79405d1bc30c868cdf2c4bfb3abe654d28aeb5ca.tar.zst time-picker-79405d1bc30c868cdf2c4bfb3abe654d28aeb5ca.zip |
Added am/pm switching test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Select.spec.jsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Select.spec.jsx b/tests/Select.spec.jsx index 827a736..fb58145 100644 --- a/tests/Select.spec.jsx +++ b/tests/Select.spec.jsx | |||
@@ -438,7 +438,13 @@ describe('Select', () => { | |||
438 | expect((input).value).to.be('12:00 am'); | 438 | expect((input).value).to.be('12:00 am'); |
439 | const option = selector.getElementsByTagName('li')[1]; | 439 | const option = selector.getElementsByTagName('li')[1]; |
440 | Simulate.click(option); | 440 | Simulate.click(option); |
441 | setTimeout(next, 100); | 441 | setTimeout(next, 200); |
442 | }, (next) => { | ||
443 | expect((input).value).to.be('12:00 pm'); | ||
444 | next(); | ||
445 | }, (next) => { | ||
446 | Simulate.click(selector.getElementsByTagName('li')[0]); | ||
447 | setTimeout(next, 200); | ||
442 | }, (next) => { | 448 | }, (next) => { |
443 | expect((input).value).to.be('12:00 pm'); | 449 | expect((input).value).to.be('12:00 pm'); |
444 | next(); | 450 | next(); |