Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Capybara check the page between custom votes
As pointed out in PR consul#2734: "After clicking the first link, there's an AJAX request which replaces the existing `.in-favor a` and `.against a` links with new elements. So if Capybara tries to click the existing `.against a` link at the same moment it's being replaced, clicking the link won't generate a new request". Making Capybara check the page for new content before clicking the second link solves the problem. This commit solves issues affecting Madrid's fork but not the original CONSUL repo.
- Loading branch information