You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Ballots Groups Change my heading
Failure/Error: expect(page).to have_content "Remove"
Selenium::WebDriver::Error::StaleElementReferenceError:
stale element reference: element is not attached to the page document
(Session info: headless chrome=71.0.3578.80)
(Driver info: chromedriver=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.4.0-101-generic x86_64)
# ./spec/support/common_actions/budgets.rb:10:in `block in add_to_ballot'
# ./spec/support/common_actions/budgets.rb:8:in `add_to_ballot'
# ./spec/features/budgets/ballots_spec.rb:282:in `block (3 levels) in <top (required)>'
Cause
The code:
within("#budget_investment_#{investment1.id}") do
find(".remove a").click
end
visit budget_investments_path(budget, heading_id: new_york.id)
Generates a "normal" request after an AJAX request. A possible reason why the tests fails is we don't check the AJAX request has finished before visiting the new page, and so both requests enter a race condition.
Failure
Travis failed builds: Travis build 28983, job 2, Madrid's build 11441, job 9
and forked repo build 20, job 1
Messages:
Another message:
Cause
The code:
Generates a "normal" request after an AJAX request. A possible reason why the tests fails is we don't check the AJAX request has finished before visiting the new page, and so both requests enter a race condition.
Note this test only fails after upgrading to Rails 5, probably due to a different behaviour in AJAX calls during tests.
The text was updated successfully, but these errors were encountered: