Undo change to aspects_steps.rb that breaks the build
When I removed this and tested it locally, the feature spec still passed, but it is failing on CI, so it looks like we still need this `execute_script` use until we find a better Capybara strategy.
This commit is contained in:
parent
ae5333d67d
commit
107f118db4
1 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,8 @@ When /^(.*) in the aspect creation modal$/ do |action|
|
|||
end
|
||||
|
||||
When /^I drag "([^"]*)" (up|down)$/ do |aspect_name, direction|
|
||||
expect(page).to have_js_defined("$('body').sortable")
|
||||
page.execute_script("$('#aspect_nav .list-group').sortable('option', 'tolerance', 'pointer');")
|
||||
aspect_id = @me.aspects.where(name: aspect_name).first.id
|
||||
aspect = find(:xpath, "//div[@id='aspect_nav']/ul/a[@data-aspect-id='#{aspect_id}']")
|
||||
target = direction == "up" ? aspect.all(:xpath, "./preceding-sibling::a").last :
|
||||
|
|
|
|||
Loading…
Reference in a new issue