attempts to achieve a more reliant edit_via_modal cuke

pull/6827/head
Jens Ulferts 12 years ago
parent 53226fe448
commit c8fb7e02ac
  1. 12
      features/step_definitions/modal_steps.rb

@ -7,6 +7,16 @@ When(/^I open the modal window for the story "(.*?)"$/) do |subject|
end
When(/^I switch the modal window into edit mode$/) do
click_link("Update")
modal = find(".modal", :visible => true)
within(modal) do
click_link("Update")
end
safeguard_backlogs_modal_in_edit_mode
end
def safeguard_backlogs_modal_in_edit_mode
find_field("issue[description]", :visible => true)
end

Loading…
Cancel
Save