aboutsummaryrefslogtreecommitdiff
blob: 01e550ebfa9978add7970dd3b7dc5c35b56d45b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Feature: Request Mentor
  As a recruit
  I want to use the webapp to apply for a mentor
  so that I will get assigned one

  Scenario: Listing contributions
    Given I am logged in as "recruit"
    And I am on edit "recruit" user page
    When I fill in "user[contributions]" with "some contributions"
    And I press "Save"
    Then I should see "Changes to your account were saved" within ".flash.notice"
    And I should see "some contributions" within ".contributions-tag.view.user-contributions"

  Scenario: Unassigned Recruit listing for Mentors
    Given I am logged in as "mentor" who is "mentor"
    And user "recruit1" who is "recruit"
    And user "recruit2" who is "recruit"
    And user "mentor" is mentor of "recruit3"
    When I am on the home page
    And I follow "See mentorless recruits"
    Then I should see "recruit1" within ".collection.users"
    And I should see "recruit1" within ".collection.users"
    But I should not see "recruit3" within ".collection.users"

  Scenario: Become mentor of mentorless recruit
    Given I am logged in as "mentor" who is "mentor"
    And user "recruit" who is "recruit"
    And I am on edit "recruit" user page
    When I select "mentor" from "user[mentor_id]"
    And press "Save"
    Then I should see "Changes to the user were saved" within ".flash.notice"