Cucumber Features

Expand All

Collapse All

Feature: Community section

In order to engage with the community
As an registered user
I want to be able to see & post messages

Background

  1. Given the seeded users
    features/step_definitions/seed_steps.rb:1
features/community.feature:10

Scenario: View community page overview of posts

  1. Given the following topics:
    features/step_definitions/community_steps.rb:1
    title
    content
    we love blur
    yea, we do. Damon Albarn is the nuts
    singer wanted for Blur
    we done killed him
  2. Given we seeded those topics
    features/step_definitions/community_steps.rb:10
  3. When I go to the community page
    features/step_definitions/web_steps.rb:33
  4. Then I should see "Boards"
    features/step_definitions/web_steps.rb:123
  5. And I should see "Music forum"
    features/step_definitions/web_steps.rb:123
  6. And I should see "Announcements"
    features/step_definitions/web_steps.rb:123
  7. And I should see "we love blur"
    features/step_definitions/web_steps.rb:123
  8. And I should see "singer wanted for Blur"
    features/step_definitions/web_steps.rb:123
features/community.feature:23

Scenario: Post a new topic

  1. Given the following topics:
    features/step_definitions/community_steps.rb:1
    title
    content
    we love blur
    yea, we do. Damon Albarn is the nuts
    singer wanted for Blur
    we done killed him
  2. Given we seeded those topics
    features/step_definitions/community_steps.rb:10
  3. And I am logged in as "dis_poster"
    features/step_definitions/user_authentication_steps.rb:62
  4. When I go to the community page
    features/step_definitions/web_steps.rb:33
  5. And I follow "Music forum"
    features/step_definitions/web_steps.rb:43
  6. Then I should see "Boards"
    features/step_definitions/web_steps.rb:123
  7. When I fill in "topic[title]" with "this Martyn album is pretty sick" within "#reply"
    features/step_definitions/web_steps.rb:55
  8. And I fill in "topic[content_raw]" with "super tight production style" within "#reply"
    features/step_definitions/web_steps.rb:55
  9. And I press "commit" within ".form_submit"
    features/step_definitions/web_steps.rb:37
  10. Then I should see "this Martyn album is pretty sick"
    features/step_definitions/web_steps.rb:123
  11. And I should see "super tight production style"
    features/step_definitions/web_steps.rb:123

Feature: User Signup

In order to become a member of DiS
As a registered user
I want to be able to signup

Background

  1. Given allow local http requests
    features/step_definitions/webmock_steps.rb:1
@javascriptfeatures/signup.feature:10

Scenario: successful signup

  1. Given the following human check questions:
    features/step_definitions/signup_steps.rb:1
    question
    answer
    what is the meaning of life
    42
  2. When I visit the signup screen
    features/step_definitions/signup_steps.rb:6
  3. And complete the form as "dis_user"
    features/step_definitions/signup_steps.rb:14
  4. Then I should see the welcome message
    features/step_definitions/signup_steps.rb:40
@javascriptfeatures/signup.feature:19

Scenario: user forgets email

  1. Given the following human check questions:
    features/step_definitions/signup_steps.rb:1
    question
    answer
    what is the meaning of life
    42
  2. When I visit the signup screen
    features/step_definitions/signup_steps.rb:6
  3. And partially complete the form as "dis_user"
    features/step_definitions/signup_steps.rb:29
  4. Then I should see an email error message
    features/step_definitions/signup_steps.rb:52
features/signup.feature:27

Scenario: site has some protection from spam

  1. Given the following human check questions:
    features/step_definitions/signup_steps.rb:1
    question
    answer
    what is the meaning of life
    42
  2. When I visit the signup screen
    features/step_definitions/signup_steps.rb:6
  3. And a robot completes the form as "robot"
    features/step_definitions/signup_steps.rb:35
  4. Then I should see an human check error message
    features/step_definitions/signup_steps.rb:60

Feature: Social functions

In order to don't miss out on my favourite site content
As an user
I want to be able to follow an interesting content/creators

Background

  1. Given the seeded users
    features/step_definitions/seed_steps.rb:1
  2. And disabled Twitter requests
    features/step_definitions/webmock_steps.rb:6
  3. And disabled Muzu requests
    features/step_definitions/webmock_steps.rb:21
  4. And disabled Amazon requests
    features/step_definitions/webmock_steps.rb:26
@javascriptfeatures/social.feature:13

Scenario: Registered user follows an artist from their artist page

  1. Given the seeded artists
    features/step_definitions/seed_steps.rb:38
  2. And I am logged in as "dis_reg_user"
    features/step_definitions/user_authentication_steps.rb:62
  3. When I go to Radiohead's page
    features/step_definitions/web_steps.rb:33
  4. Then I should see "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:123
  5. When I press "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:37
  6. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  7. Then I should see "Radiohead"
    features/step_definitions/web_steps.rb:123
  8. When I go to Radiohead's page
    features/step_definitions/web_steps.rb:33
  9. Then I should see "UNFOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/social.feature:25

Scenario: Unregistered user follows a artist from their profile page

  1. Given the seeded artists
    features/step_definitions/seed_steps.rb:38
  2. And I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  3. When I go to Radiohead's page
    features/step_definitions/web_steps.rb:33
  4. Then I should see "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:123
  5. When I press "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:37
  6. Then I should see "Login Required"
    features/step_definitions/web_steps.rb:123
  7. When I Log In on current screen
    features/step_definitions/user_authentication_steps.rb:80
  8. And I go to Radiohead's page
    features/step_definitions/web_steps.rb:33
  9. Then I should see "UNFOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/social.feature:37

Scenario: Registered user follows a user from their profile page

  1. Given I am logged in as "dis_reg_user"
    features/step_definitions/user_authentication_steps.rb:62
  2. When I go to cucumber's page
    features/step_definitions/web_steps.rb:33
  3. Then I should see "FOLLOW"
    features/step_definitions/web_steps.rb:123
  4. When I click link "FOLLOW"
    features/step_definitions/web_steps.rb:49
  5. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  6. Then I should see "cucumber"
    features/step_definitions/web_steps.rb:123
  7. When I go to cucumber's page
    features/step_definitions/web_steps.rb:33
  8. Then I should see "UNFOLLOW"
    features/step_definitions/web_steps.rb:123
  9. And I click link "UNFOLLOW"
    features/step_definitions/web_steps.rb:49
  10. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  11. Then I should not see "cucumber" within "#my_stuff"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/social.feature:51

Scenario: Unregistered user follows a user from their profile page

  1. Given I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  2. When I go to cucumber's page
    features/step_definitions/web_steps.rb:33
  3. Then I should see "FOLLOW"
    features/step_definitions/web_steps.rb:123
  4. When I click link "FOLLOW"
    features/step_definitions/web_steps.rb:49
  5. Then I should see "Login Required"
    features/step_definitions/web_steps.rb:123
  6. When I Log In on current screen
    features/step_definitions/user_authentication_steps.rb:80
  7. And I go to cucumber's page
    features/step_definitions/web_steps.rb:33
  8. Then I should see "UNFOLLOW"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/social.feature:62

Scenario: Registered can view popular users

  1. Given I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  2. And the seeded social users
    features/step_definitions/seed_steps.rb:12
  3. When I go to my dashboard
    features/step_definitions/web_steps.rb:33
  4. Then I should see "Popular users"
    features/step_definitions/web_steps.rb:123
  5. And I should see "sean9 (109)" within "#popular_users"
    features/step_definitions/web_steps.rb:123
  6. And I should see "sean1 (101)" within "#popular_users"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/social.feature:71

Scenario: Registered user follows an artist from a record review page

  1. Given the seeded record reviews
    features/step_definitions/seed_steps.rb:51
  2. And I am logged in as "dis_reg_user"
    features/step_definitions/user_authentication_steps.rb:62
  3. When I go to Reviews page
    features/step_definitions/web_steps.rb:33
  4. Then I should see "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:123
  5. When I press "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:37
  6. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  7. Then I should see "Radiohead"
    features/step_definitions/web_steps.rb:123
  8. When I go to Radiohead's page
    features/step_definitions/web_steps.rb:33
  9. Then I should see "UNFOLLOW"
    features/step_definitions/web_steps.rb:123
  10. And I press "UNFOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:37
  11. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  12. Then I should not see "Radiohead" within "#my_stuff"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/social.feature:87

Scenario: Unregistered user follows an artist from a record review page

  1. Given the seeded record reviews
    features/step_definitions/seed_steps.rb:51
  2. And I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  3. When I go to Reviews page
    features/step_definitions/web_steps.rb:33
  4. Then I should see "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:123
  5. When I press "FOLLOW RADIOHEAD"
    features/step_definitions/web_steps.rb:37
  6. Then I should see "Login Required"
    features/step_definitions/web_steps.rb:123
  7. When I Log In on current screen
    features/step_definitions/user_authentication_steps.rb:80
  8. And I go to Radiohead's page
    features/step_definitions/web_steps.rb:33
  9. Then I should see "UNFOLLOW"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/social.feature:99

Scenario: Registered user can view popular artists

  1. Given I am the user "dis_reg_user"
    features/step_definitions/user_authentication_steps.rb:58
  2. And the seeded social artists
    features/step_definitions/seed_steps.rb:43
  3. When I go to my dashboard
    features/step_definitions/web_steps.rb:33
  4. Then I should see "Popular artists"
    features/step_definitions/web_steps.rb:123
  5. And I should see "radiohead9 (109)"
    features/step_definitions/web_steps.rb:123
  6. And I should see "radiohead1 (101)"
    features/step_definitions/web_steps.rb:123
  7. And I should not see "unpopularnartist"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/social.feature:109

Scenario: Registered can import twitter friends

  1. Given I am logged in as "dis_twitter_importer"
    features/step_definitions/user_authentication_steps.rb:62
  2. When I go to my twitter profile
    features/step_definitions/web_steps.rb:33
  3. Then I should see "distwitterimporter"
    features/step_definitions/web_steps.rb:123
  4. And I should see "37signals"
    features/step_definitions/web_steps.rb:123
  5. When I click link "SoundCloud"
    features/step_definitions/web_steps.rb:49
  6. And I click link "baumschlager"
    features/step_definitions/web_steps.rb:49
  7. And I click link "ruaridhTVO"
    features/step_definitions/web_steps.rb:49
  8. And I click link "FOLLOW!"
    features/step_definitions/web_steps.rb:49
  9. Then I should see "Check out their profiles below"
    features/step_definitions/web_steps.rb:123
  10. And I should see "SoundCloud"
    features/step_definitions/web_steps.rb:123
  11. And I should see "baumschlager"
    features/step_definitions/web_steps.rb:123
  12. And I should see "ruaridhTVO"
    features/step_definitions/web_steps.rb:123
  13. And I should not see "37signals"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/social.feature:125

Scenario: Registered user can follow writer from a record review page

  1. Given the seeded record reviews
    features/step_definitions/seed_steps.rb:51
  2. And I am logged in as "dis_reg_user"
    features/step_definitions/user_authentication_steps.rb:62
  3. When I go to Reviews page
    features/step_definitions/web_steps.rb:33
  4. Then I should see "FOLLOW JOHN DAVISON"
    features/step_definitions/web_steps.rb:123
  5. When I press "FOLLOW JOHN DAVISON"
    features/step_definitions/web_steps.rb:37
  6. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  7. Then I should see "John Davison" within "#my_stuff"
    features/step_definitions/web_steps.rb:123
  8. When I go to Reviews page
    features/step_definitions/web_steps.rb:33
  9. Then I should see "UNFOLLOW JOHN DAVISON"
    features/step_definitions/web_steps.rb:123
  10. When I press "UNFOLLOW JOHN DAVISON"
    features/step_definitions/web_steps.rb:37
  11. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  12. Then I should not see "John Davison" within "#my_stuff"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/social.feature:140

Scenario: Registered user can follow writer from a record review page

  1. Given the seeded record reviews
    features/step_definitions/seed_steps.rb:51
  2. And I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  3. When I go to Reviews page
    features/step_definitions/web_steps.rb:33
  4. Then I should see "FOLLOW JOHN DAVISON"
    features/step_definitions/web_steps.rb:123
  5. When I press "FOLLOW JOHN DAVISON"
    features/step_definitions/web_steps.rb:37
  6. Then I should see "Login Required"
    features/step_definitions/web_steps.rb:123
  7. When I Log In on current screen
    features/step_definitions/user_authentication_steps.rb:80
  8. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  9. Then I should see "John Davison" within "#my_stuff"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/social.feature:152

Scenario: Registered can view popular writers

  1. Given I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  2. And the seeded social writers
    features/step_definitions/seed_steps.rb:23
  3. When I go to my dashboard
    features/step_definitions/web_steps.rb:33
  4. Then I should see "Popular writers"
    features/step_definitions/web_steps.rb:123
  5. And I should see "sean_admin (109)" within "#popular_writers"
    features/step_definitions/web_steps.rb:123
  6. And I should see "sean_editor (108)" within "#popular_writers"
    features/step_definitions/web_steps.rb:123
  7. And I should see "sean_contributor (107)" within "#popular_writers"
    features/step_definitions/web_steps.rb:123
  8. And I should see "writer0 (100)" within "#popular_writers"
    features/step_definitions/web_steps.rb:123
  9. And I should not see "non_writer (110)" within "#popular_writers"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/social.feature:166

Scenario: Registered user follows a topic

  1. Given I am logged in as "dis_reg_user"
    features/step_definitions/user_authentication_steps.rb:62
  2. And the following topics:
    features/step_definitions/community_steps.rb:1
    title
    content
    we love blur
    yea, we do. Damon Albarn is the nuts
    singer wanted for Blur
    we done killed him
  3. And we seeded those topics
    features/step_definitions/community_steps.rb:10
  4. When I go to the 1st topic page
    features/step_definitions/web_steps.rb:33
  5. Then I should see "we love blur"
    features/step_definitions/web_steps.rb:123
  6. And I should see "FOLLOW"
    features/step_definitions/web_steps.rb:123
  7. When I click link "FOLLOW"
    features/step_definitions/web_steps.rb:49
  8. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  9. Then I should see "we love blur"
    features/step_definitions/web_steps.rb:123
  10. When I go to the 1st topic page#
    features/step_definitions/web_steps.rb:33
  11. Then I should see "UNFOLLOW"
    features/step_definitions/web_steps.rb:123
  12. And I click link "UNFOLLOW"
    features/step_definitions/web_steps.rb:49
  13. And I go to my dashboard
    features/step_definitions/web_steps.rb:33
  14. Then I should not see "we love blur" within "#my_stuff"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/social.feature:186

Scenario: Unregistered user follows a topic

  1. Given I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  2. And the following topics:
    features/step_definitions/community_steps.rb:1
    title
    content
    we love blur
    yea, we do. Damon Albarn is the nuts
    singer wanted for Blur
    we done killed him
  3. And we seeded those topics
    features/step_definitions/community_steps.rb:10
  4. When I go to the 1st topic page
    features/step_definitions/web_steps.rb:33
  5. Then I should see "we love blur"
    features/step_definitions/web_steps.rb:123
  6. And I should see "FOLLOW"
    features/step_definitions/web_steps.rb:123
  7. When I click link "FOLLOW"
    features/step_definitions/web_steps.rb:49
  8. Then I should see "Login Required"
    features/step_definitions/web_steps.rb:123
  9. When I Log In on current screen
    features/step_definitions/user_authentication_steps.rb:80
  10. And I go to the 1st topic page
    features/step_definitions/web_steps.rb:33
  11. Then I should see "UNFOLLOW"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/social.feature:204

Scenario: Registered can view popular topics

  1. Given I am the user "dis_user"
    features/step_definitions/user_authentication_steps.rb:58
  2. And the seeded social topics
    features/step_definitions/seed_steps.rb:70
  3. When I go to my dashboard
    features/step_definitions/web_steps.rb:33
  4. Then I should see "Popular topics"
    features/step_definitions/web_steps.rb:123
  5. And I should see "Topic9 (109)" within "#popular_topics"
    features/step_definitions/web_steps.rb:123
  6. And I should see "Topic1 (101)" within "#popular_topics"
    features/step_definitions/web_steps.rb:123
  7. And I should not see "unpopulartopic (50)" within "#popular_topics"
    features/step_definitions/web_steps.rb:144

Feature: Staff section

In order to create new content
As an staff user
I want to be able to create content

Background

  1. Given allow local http requests
    features/step_definitions/webmock_steps.rb:1
  2. And disabled Muzu requests
    features/step_definitions/webmock_steps.rb:21
  3. And disabled Bit.ly requests
    features/step_definitions/webmock_steps.rb:31
  4. And disabled S3 requests
    features/step_definitions/webmock_steps.rb:36
  5. And the seeded users
    features/step_definitions/seed_steps.rb:1
  6. And the seeded artists
    features/step_definitions/seed_steps.rb:38
  7. And the seeded categories
    features/step_definitions/seed_steps.rb:65
  8. And the seeded Lists
    features/step_definitions/seed_steps.rb:81
features/staff.feature:17

Scenario: Post a news article

  1. Given I am logged in as "dis_staffer"
    features/step_definitions/user_authentication_steps.rb:62
  2. When I go to the staff page
    features/step_definitions/web_steps.rb:33
  3. And I follow "+ Upload new content"
    features/step_definitions/web_steps.rb:43
  4. Then I should see "Edit Content"
    features/step_definitions/web_steps.rb:123
  5. And I select "In Depth" from "content_category_id"
    features/step_definitions/web_steps.rb:86
  6. And I fill in "user[username]" with "dis_staffer"
    features/step_definitions/web_steps.rb:55
  7. And I fill in "content[title_raw]" with "End of year lists"
    features/step_definitions/web_steps.rb:55
  8. And I fill in "content[subject]" with "lists"
    features/step_definitions/web_steps.rb:55
  9. And I fill in "artist[name]" with "Radiohead"
    features/step_definitions/web_steps.rb:55
  10. And I fill in "content[content_raw]" with "#{Faker::Lipsum.paragraph}"
    features/step_definitions/web_steps.rb:55
  11. And I press "Save and queue"
    features/step_definitions/web_steps.rb:37
  12. Then I should see "End of year lists"
    features/step_definitions/web_steps.rb:123
@javascriptfeatures/staff.feature:33

Scenario: Post recommended articles to homepage

  1. Given I am logged in as "dis_staffer"
    features/step_definitions/user_authentication_steps.rb:62
  2. And the following content:
    features/step_definitions/staff_steps.rb:10
    title
    content
    rec_reading_list
    rec_records_list
    image
    This Week's Singles: 12/03/12 Sharon Van Etten, Yeti Lane, Waters, Liz Green
    Liz Green? I like her
    true
    false
    940x535MSP.jpg
    singer wanted for Blur
    we done killed him
    true
    false
    940x535Radiohead.jpg
    something else, we don't expect in slideshow
    who cares
    false
    false
    940x535Radiohead.jpg
  3. And we added that content to the CMS
    features/step_definitions/staff_steps.rb:15
  4. When I go to the home page
    features/step_definitions/web_steps.rb:33
  5. And I should see that content in the recommended slideshow
    features/step_definitions/staff_steps.rb:50
@javascriptfeatures/staff.feature:45

Scenario: Post recommended releases to homepage

  1. Given I am logged in as "dis_staffer"
    features/step_definitions/user_authentication_steps.rb:62
  2. And the following content:
    features/step_definitions/staff_steps.rb:10
    title
    content
    rec_reading_list
    rec_records_list
    image
    Dirty Three - Toward the Low Sun
    Some chat about Cave et all
    false
    true
    220px-mastodon.jpg
    Burial - Kindred
    Who are ya? Will to his mum
    false
    true
    220px-mastodon.jpg
    School Of Seven Bells - Ghostory
    five,six,seven,eight
    false
    false
    220px-mastodon.jpg
  3. And we added that content to the CMS
    features/step_definitions/staff_steps.rb:15
  4. When I go to the home page
    features/step_definitions/web_steps.rb:33
  5. And I should see that content in the recommended records section
    features/step_definitions/staff_steps.rb:62
@javascriptfeatures/staff.feature:57

Scenario: Post latest content to homepage

  1. Given I am logged in as "dis_staffer"
    features/step_definitions/user_authentication_steps.rb:62
  2. And the following content:
    features/step_definitions/staff_steps.rb:10
    title
    content
    rec_reading_list
    rec_records_list
    image
    Dirty Three - Toward the Low Sun
    Some chat about Cave et all
    false
    false
    220px-mastodon.jpg
    Burial - Kindred
    Who are ya? Will to his mum
    false
    false
    220px-mastodon.jpg
    School Of Seven Bells - Ghostory
    five,six,seven,eight
    false
    false
    220px-mastodon.jpg
    Watch: SBTRKT in session
    BBC 6 Music's 10th Birthday Celebrations
    false
    false
    220px-mastodon.jpg
    At the Drive-In, Blood Red Shoes
    Metronomy, SBTRKT, Shins, Cure, Paramore and more for Reading & Leeds 2012
    false
    false
    220px-mastodon.jpg
    Radiohead:new dates
    More on the tour
    false
    false
    220px-mastodon.jpg
  3. And we added that content to the CMS
    features/step_definitions/staff_steps.rb:15
  4. When I go to the home page
    features/step_definitions/web_steps.rb:33
  5. And I should see that content in the latest section
    features/step_definitions/staff_steps.rb:74

Feature: Unregistered user

In order to browse the site
As an unregistered user
I want to be able to see content

Background

  1. Given disabled Muzu requests
    features/step_definitions/webmock_steps.rb:21
  2. And allow local http requests
    features/step_definitions/webmock_steps.rb:1
@javascriptfeatures/unregistered_user.feature:10

Scenario: First time visitor can see and hide site overview

  1. Given the following topics:
    features/step_definitions/community_steps.rb:1
    title
    content
    we love blur
    yea, we do. Damon Albarn is the nuts
    singer wanted for Blur
    we done killed him
  2. Given we seeded those topics
    features/step_definitions/community_steps.rb:10
  3. Given the seeded social artists
    features/step_definitions/seed_steps.rb:43
  4. And the seeded social users
    features/step_definitions/seed_steps.rb:12
  5. And the seeded record reviews
    features/step_definitions/seed_steps.rb:51
  6. When I go to the home page
    features/step_definitions/web_steps.rb:33
  7. And I click link "search_nav"
    features/step_definitions/web_steps.rb:49
  8. Then I should see "Welcome"
    features/step_definitions/web_steps.rb:123
  9. And I should see "1 albums"
    features/step_definitions/web_steps.rb:123
  10. And I should see "2 threads"
    features/step_definitions/web_steps.rb:123
  11. And I should see "12 artists"
    features/step_definitions/web_steps.rb:123
  12. And I should see "radiohead5"
    features/step_definitions/web_steps.rb:123
  13. And I should see "radiohead9"
    features/step_definitions/web_steps.rb:123
  14. And I should not see "unpopularartist"
    features/step_definitions/web_steps.rb:144
  15. When I go to the community page
    features/step_definitions/web_steps.rb:33
  16. And I click link "search_nav"
    features/step_definitions/web_steps.rb:49
  17. Then I should see "Welcome"
    features/step_definitions/web_steps.rb:123
  18. And I should see "Hide" within "#site_overview"
    features/step_definitions/web_steps.rb:123
  19. When I click link "Hide" within "#site_overview"
    features/step_definitions/web_steps.rb:49
  20. And I go to the home page
    features/step_definitions/web_steps.rb:33
  21. And I click link "search_nav"
    features/step_definitions/web_steps.rb:49
  22. Then I should not see "Welcome"
    features/step_definitions/web_steps.rb:144
@javascriptfeatures/unregistered_user.feature:38

Scenario: Unregistered user can search for content

  1. Given I go to the home page
    features/step_definitions/web_steps.rb:33
  2. Then I should see "Search"
    features/step_definitions/web_steps.rb:123
  3. When I click link "search_nav"
    features/step_definitions/web_steps.rb:49
  4. And I wait a little
    features/step_definitions/web_steps.rb:237
  5. And I complete the search form with "radiohead"
    features/step_definitions/unregistered_user_steps.rb:55
  6. Then I should be on the search page
    features/step_definitions/web_steps.rb:211
  7. And I should see "Site Search"
    features/step_definitions/web_steps.rb:123

Feature: User Authentication


The authentication process should allow users to login and logout and should persist a UserSession

features/user_authentication.feature:5

Scenario: Clicking the Log In button

  1. Given I am on the home page
    features/step_definitions/web_steps.rb:29
  2. And I am not logged in
    features/step_definitions/user_authentication_steps.rb:67
  3. When I visit the login screen
    features/step_definitions/signup_steps.rb:10
  4. Then I should be on the login page
    features/step_definitions/web_steps.rb:211
  5. And I should see "Log In"
    features/step_definitions/web_steps.rb:123
features/user_authentication.feature:12

Scenario: Logging In from the Login Page

  1. Given I am the user "Bingo"
    features/step_definitions/user_authentication_steps.rb:58
  2. When I Log In
    features/step_definitions/user_authentication_steps.rb:71
  3. Then there should be a session
    features/step_definitions/user_authentication_steps.rb:88
  4. And the user should be "Bingo"
    features/step_definitions/user_authentication_steps.rb:98
features/user_authentication.feature:18

Scenario: The "I am logged in as" method

  1. Given I am logged in as "Bingo"
    features/step_definitions/user_authentication_steps.rb:62
  2. Then there should be a session
    features/step_definitions/user_authentication_steps.rb:88
  3. And the user should be "Bingo"
    features/step_definitions/user_authentication_steps.rb:98
features/user_authentication.feature:23

Scenario: Logging Out

  1. Given I am logged in as "Bingo"
    features/step_definitions/user_authentication_steps.rb:62
  2. When I logout
    features/step_definitions/user_authentication_steps.rb:84
  3. Then there should not be a session
    features/step_definitions/user_authentication_steps.rb:93
features/user_authentication.feature:28

Scenario: Attempting to log in with a bad password

  1. Given I am the user "Bingo"
    features/step_definitions/user_authentication_steps.rb:58
  2. When I try to log in with invalid credentials
    features/step_definitions/user_authentication_steps.rb:76
  3. Then there should not be a session
    features/step_definitions/user_authentication_steps.rb:93
  4. And I should see "Password is not valid"
    features/step_definitions/web_steps.rb:123