diaspora/features/step_definitions/comment_steps.rb
Dennis Collinson 9769dfb303 cukes passing
2012-02-23 17:24:19 -08:00

21 lines
No EOL
612 B
Ruby

When /^I focus the comment field$/ do
focus_comment_box
end
Then /^the first comment field should be open/ do
find("#main_stream .stream_element .new_comment").should be_visible
end
Then /^the first comment field should be closed$/ do
find("#main_stream .stream_element .new_comment").should_not be_visible
end
When /^I comment "([^"]*)" on "([^"]*)"$/ do |comment_text, post_text|
comment_on_post(post_text, comment_text)
end
When /^I make a show page comment "([^"]*)"$/ do |comment_text|
find(".label.comment").click
fill_in "new-comment-text", :with => comment_text
click_button :submit
end