From 79405d1bc30c868cdf2c4bfb3abe654d28aeb5ca Mon Sep 17 00:00:00 2001 From: Antony Shaleynikov Date: Thu, 2 Mar 2017 16:23:48 +0300 Subject: [PATCH] Added am/pm switching test --- tests/Select.spec.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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', () => { 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(); -- 2.41.0