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:
parent
7e20cece42
commit
624e7277e8
2 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue