Skip to content
Extraits de code Groupes Projets
Valider 624e7277 rédigé par Dan Hansen's avatar Dan Hansen
Parcourir les fichiers

the "When I open the comment box" step used an old javascript function of ours...

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"
parent 7e20cece
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter