Fix cucumber failures related to jQuery UI changes

Ref #1975
This commit is contained in:
Dan Rice 2016-02-15 23:32:32 -05:00
parent 543ed97e2d
commit 9419e94a53
4 changed files with 9 additions and 6 deletions

View file

@ -42,11 +42,8 @@ When /^I edit the dependency of "([^"]*)" to add "([^"]*)" as predecessor$/ do |
# in webkit, the autocompleter is not fired after fill_in
page.execute_script %Q{$("#{form_css}").find('input[id$="predecessor_input"]').autocomplete('search')} if Capybara.javascript_driver == :webkit
# wait for auto complete
expect(page).to have_css("a.ui-state-focus")
# click first line
page.find(:css, "ul li a.ui-state-focus").click
page.find('ul.ui-autocomplete li.ui-state-focus').click
# wait for the new dependency to be added to the list
expect(page).to have_css("li#pred_#{predecessor.id}")