New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new system test fails due to probably timing issue #6904
Comments
Hmmm, I'm not sure! I'll google and see if I can find any other tricks to getting it to process faster. |
One thing I'm finding is that some people have implemented a method wait_for_ajax which checks and waits while there are Ajax calls still completing. The other option is addressing the When a tag gets added via the form in plots2/app/assets/javascripts/submit_form_ajax.js Lines 11 to 19 in 6824509
plots2/app/assets/javascripts/tagging.js Lines 43 to 64 in 6824509
But that doesn't happen when tag is added via url in So two possible options: change the testing, or change the function itself. |
pulling out into a separate function sounds good, as it'd be a bit more modular as well. Let's do that! Thank you! |
plots2/test/system/tag_test.rb
Lines 27 to 46 in 3c02733
These lines seem to fail - esp
assert_selector('.tags-list .card-body h5', text: 'roses')
, in what I think is just a timing failure - that we should wait longer for it to complete, as it's an AJAX request.I've seen a failure for this on #6758 (which I restarted) and on #6858 (comment) (which resolved on restart, but the error output is there):
We could lengthen
Capybara.default_max_wait_time = 60
but there are other subtle ways to fix timings. Oddly, one is to add anassert_select
as it is supposed to naturally keep looking for up to 60 seconds for stuff to appear on the page when looking for specific CSS/HTML with that method. Here, that doesn't seem to be working.Referencing some previous timing-related issues which don't seem so helpful, but maybe:
#5683 and #6179 (maybe?)
This is an odd one! I wonder what's going on, @nstjean !? Stumped!
The text was updated successfully, but these errors were encountered: