@@ -8,6 +8,7 @@ Feature: The Hackety Blog
88 And I go to the new post page
99 When I fill in "Title" with "new title"
1010 And I fill in "Body" with "new body"
11+ And I fill in "Slug" with "new_title"
1112 And I press "Create Post"
1213 Then I should see "Post Created"
1314 And I should see "new title"
@@ -31,6 +32,7 @@ Feature: The Hackety Blog
3132 And there is a blog post with the title "First Post"
3233 And I go to the edit post page for the post with the title "First Post"
3334 And I fill in "Title" with "new title"
35+ And I fill in "Slug" with "new_title"
3436 And I fill in "Body" with "new body"
3537 When I press "Modify Post"
3638 Then I should see "Post Modified"
@@ -48,25 +50,26 @@ Feature: The Hackety Blog
4850 And I go to the edit post page for the post with the title "First Post"
4951 Then I should see "Sorry, buddy"
5052 Scenario : Logged in Users can comment on the blog
51- Given I'm logged in as a user with the email "awesome@example.com "
53+ Given I'm logged in as "steve "
5254 And there is a blog post
5355 When I go to a blog post page
54- And I fill in "Speak your mind :" with "This post is amazing!"
55- And I press "Submit comment "
56+ And I fill in "Submit your opinion :" with "This post is amazing!"
57+ And I press "Submit"
5658 Then I should be on a blog post page
5759 And I should see "Thanks for your comment!"
58- And I should see "awesome@example.com says:"
60+ And I should see "steve says:"
5961 And I should see "This post is amazing!"
6062 Scenario : Logged out users can't comment on the blog
6163 Given I'm not logged in
6264 And there is a blog post
6365 When I go to a blog post page
64- Then should not see "Speak your mind :"
65- And I should not see "Submit comment "
66+ Then should not see "Submit your opinion :"
67+ And I should not see "Submit"
6668 Scenario : Blog should use Markdown
6769 Given I'm logged in as admin
6870 And I go to the new post page
6971 When I fill in "Title" with "new title"
72+ And I fill in "Slug" with "new_title"
7073 And I fill in "Body" with "new body with a link: [google](http://google.com/)"
7174 And I press "Create Post"
7275 Then I should see "Post Created"
0 commit comments