goodwill / capybara-select2

Helper for capybara to be able to trigger select on select2 javascript (needed for js enabled test only)
MIT License
80 stars 111 forks source link

Having issues with tests timing out #1

Open brobertsaz opened 11 years ago

brobertsaz commented 11 years ago

First off, I love this gem!!! I am having issues with the tests timing out. I have added in sleep 2's before and after the action button clicks but it is still hanging up during tests basically after it prints out:

Any ideas?

BR

goodwill commented 11 years ago

Could provide a simple test case so I could know what exactly causing the timeout? I know the gem has a very limited coverage on how it should work on various scenario (I just extract this from what I did, so surely it needs a bit more work to cover more cases), thanks in advance.

On Tue, Jan 1, 2013 at 12:42 PM, Bob Roberts notifications@github.comwrote:

First off, I love this gem!!! I am having issues with the tests timing out. I have added in sleep 2's before and after the action button clicks but it is still hanging up during tests basically after it prints out:

#

Any ideas?

BR

— Reply to this email directly or view it on GitHubhttps://github.com/goodwill/capybara-select2/issues/1.

Regards,

William Yeung

Consultant

jquery+rubyonrails

Tofugear

E: william@tofugear.com T: +852 21519830 M: +852 92538475 W: http://tofugear.com

brobertsaz commented 11 years ago

OK, I forked and removed the pretty print but that made no change. What I have found is occurring when there are multiple select2 drop downs in a test. I see that the tests are passing but Rspec seems to miss it.

So far a workaround is to use a fill_in or something else after the last select2.

goodwill commented 11 years ago

The way I did mine is based on the situation I am applying select2 on a dropdown, not sure if your scenario is the same?

On 8 Jan, 2013, at 8:09 AM, Bob Roberts notifications@github.com wrote:

OK, I forked and removed the pretty print but that made no change. What I have found is occurring when there are multiple select2 drop downs in a test. I see that the tests are passing but Rspec seems to miss it.

So far a workaround is to use a fill_in or something else after the last select2.

— Reply to this email directly or view it on GitHub.

brobertsaz commented 11 years ago

Yes I am using them for drop downs.