Advertisement
saasbook

happy_and_sad_paths.feature

Feb 12th, 2012
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Feature: User can add movie by searching for it in The Movie Database (TMDb)
  2.  
  3. As a movie fan
  4. So that I can add new movies without manual tedium
  5. I want to add movies by looking up their details in TMDb
  6.  
  7. Background: Start from the Search form on the home page
  8.  
  9. Given I am on the RottenPotatoes home page
  10. Then I should see "Search TMDb for a movie"
  11.  
  12. Scenario: Try to add nonexistent movie (sad path)
  13.  
  14. When I fill in "Search Terms" with "Movie That Does Not Exist"
  15. And I press "Search TMDb"
  16. Then I should be on the RottenPotatoes home page
  17. And I should see "'Movie That Does Not Exist' was not found in TMDb."
  18.  
  19. Scenario: Try to add existing movie (happy path)
  20.  
  21. When I fill in "Search Terms" with "Inception"
  22. And I press "Search TMDb"
  23. Then I should be on the "Add New Movie" page
  24. And the "Title" field should contain "Inception"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement