From d7aaaea86e21a6250355e6d61edf9db28cb021ec Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 17 Aug 2013 14:42:12 +0200 Subject: [PATCH] Fix specs for new single post view. --- features/comments.feature | 2 +- features/support/publishing_cuke_helpers.rb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/features/comments.feature b/features/comments.feature index 93e2d8174..6a25a261a 100644 --- a/features/comments.feature +++ b/features/comments.feature @@ -55,6 +55,6 @@ Feature: commenting When I follow "less than a minute ago" Then I should see "Look at this dog" And I make a show page comment "I think thats a cat" - Then I should see "less than a minute ago" within "#post-comments" + Then I should see "less than a minute ago" within "#comments" When I go to "alice@alice.alice"'s page Then I should see "I think thats a cat" diff --git a/features/support/publishing_cuke_helpers.rb b/features/support/publishing_cuke_helpers.rb index 390be3b93..3e16cd73f 100644 --- a/features/support/publishing_cuke_helpers.rb +++ b/features/support/publishing_cuke_helpers.rb @@ -80,9 +80,8 @@ module PublishingCukeHelpers end def comment_on_show_page(comment_text) - within("#post-interactions") do - focus_comment_box(".label.comment") - make_comment(comment_text, "new-comment-text") + within("#single-post-interactions") do + make_comment(comment_text) end end