the "When I open the comment box" step used an old javascript function of ours that no longer exists. remove the feature and replace it with "When I focus the comment field"

This commit is contained in:
Dan Hansen 2011-08-30 22:08:54 -05:00
parent 7e20cece42
commit 624e7277e8
2 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -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