A website template with lots of features, built with ruby on rails.

blog.feature 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Feature: Manage Articles
  2. In order to make a blog
  3. As an author
  4. I want to create and manage blog psots
  5. Background:
  6. Given the following blog_post list
  7. | title | content | published | description | slug |
  8. | Hello World | Welcome to the website | true | First Post | hello_world |
  9. | Test 001 | 1 2 3 testing | true | Testing the website | test_001 |
  10. @focus
  11. Scenario: Blog Posts List
  12. When I go to the blog page
  13. Then I should see "Hello World"
  14. And I should see "First Post"
  15. And I should see "Test 001"
  16. And I should see "Testing the website"
  17. Scenario: Posts Page
  18. When I go to the blog page
  19. And I click in the link "Hello World"
  20. Then I should see "Hello World"
  21. And I should see "Welcome to the website"
  22. Scenario: Post Article
  23. Given I am logged in as admin
  24. Then I click in the link "Admin Panel"
  25. And I click in the link "Posts"
  26. And I click in the link "New Post"
  27. Then I fill in "Title" with "Test 002"
  28. And I fill in "Slug" with "test_002"
  29. And I fill in "Description" with "Another blog post test"
  30. And I fill in "post_content" with "This is blog post test number 002!"
  31. And I click in the button "Save"
  32. Then I should see "Test 002"
  33. And I should see "This is blog post test number 002!"