capybara-select2 icon indicating copy to clipboard operation
capybara-select2 copied to clipboard

Having issues with tests timing out

Open brobertsaz opened this issue 13 years ago • 4 comments

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:

<Capybara::Element tag="div">

Any ideas?

BR

brobertsaz avatar Jan 01 '13 04:01 brobertsaz

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 [email protected]:

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: [email protected] T: +852 21519830 M: +852 92538475 W: http://tofugear.com

goodwill avatar Jan 02 '13 04:01 goodwill

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.

brobertsaz avatar Jan 08 '13 00:01 brobertsaz

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 [email protected] 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.

goodwill avatar Jan 08 '13 02:01 goodwill

Yes I am using them for drop downs.

brobertsaz avatar Jan 11 '13 17:01 brobertsaz