mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-18 13:18:09 +01:00
finish updating cucumber scenario's to the stricter capybara
This commit is contained in:
parent
ee3f8a3f8b
commit
796685072d
11 changed files with 55 additions and 34 deletions
|
|
@ -14,9 +14,11 @@ end
|
|||
When /^I edit the context to rename it to "([^\"]*)"$/ do |new_name|
|
||||
find("a#link_edit_context_#{@context.id}").click
|
||||
page.should have_css("button#submit_context_#{@context.id}", :visible=>true)
|
||||
|
||||
fill_in "context_name", :with => new_name
|
||||
click_button "submit_context_#{@context.id}"
|
||||
|
||||
within "div.edit-form" do
|
||||
fill_in "context_name", :with => new_name
|
||||
click_button "submit_context_#{@context.id}"
|
||||
end
|
||||
|
||||
# wait for the form to go away
|
||||
page.should have_css("a#link_edit_context_#{@context.id}", :visible=> true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue