diff --git a/features/comments.feature b/features/comments.feature index 5d542124bc8c364feb3f4340ae2fb20d45e08e4b..e3942f0ccd688f271045eb9cb076a67e63328c68 100644 --- a/features/comments.feature +++ b/features/comments.feature @@ -73,7 +73,7 @@ Feature: commenting Then I should see "Look at this dog" When I follow "less than a minute ago" Then I should see "Look at this dog" - When I open the comment box + When I focus the comment field And I fill in "text" with "I think thats a cat" And I press "Comment" And I wait for the ajax to finish diff --git a/features/step_definitions/comment_steps.rb b/features/step_definitions/comment_steps.rb index 514be350450bbee8f56042be5e5c6b2c73915bde..fc59010cd3f3babea4eb6525e9c819b84d186cd6 100644 --- a/features/step_definitions/comment_steps.rb +++ b/features/step_definitions/comment_steps.rb @@ -2,10 +2,6 @@ When /^I focus the comment field$/ do find("a.focus_comment_textarea").click end -When /^I open the comment box$/ do - page.evaluate_script('Stream.focusNewComment($(".stream_element"), {preventDefault: function(){}})') -end - Then /^the first comment field should be open/ do find("#main_stream .stream_element .new_comment").should be_visible end