Fix specs for new single post view.
This commit is contained in:
parent
8c695ecec2
commit
d7aaaea86e
2 changed files with 3 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue