ref: master
features/invitation.feature
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
Feature: invitation As a noosfero visitor I want to invite my friends to Noosfero Background: Given the following users | login | email | | josesilva | silva@invalid.br | | josesantos | santos@invalid.br | And the following communities | owner | identifier | name | | josesilva | 26-bsslines | 26 Bsslines | And the following enterprises | owner | identifier | name | | josesilva | beatles-for-sale | Beatles For Sale | And I am logged in as "josesilva" Scenario: see link to invite friends When I am on /profile/josesilva/friends Then I should see "Invite people" link Scenario: see link to invite friends in myprofile When I am on /myprofile/josesilva/friends Then I should see "Invite people" link Scenario: go to invitation screen when follow link to invite friends Given I am on /myprofile/josesilva/friends When I follow "Invite people" Then I am on /profile/josesilva/invite/friends @selenium Scenario: back to friends after invite friends Given I am on /myprofile/josesilva/friends And I follow "Invite people" And I choose "Email" And I press "Next" And I fill in "manual_import_addresses" with "misfits@devil.doll" And I follow "Personalize invitation mail" And I fill in "mail_template" with "Follow this link <url>" When I press "Invite!" Then I should be on /profile/josesilva/friends Scenario: see link to invite members to community When I am on /profile/26-bsslines/members Then I should see "Invite people to join" link Scenario: not see link to invite members to community if has no rights Given I am logged in as "josesantos" When I am on /profile/26-bsslines/members Then I should not see "Invite people to join" link Scenario: go to invitation screen when follow link to invite members Given I am on /profile/26-bsslines/members When I follow "Invite people to join" Then I am on /profile/26-bsslines/invite/friends Scenario: see title when invite members When I am on /profile/26-bsslines/invite/friends Then I should see "Invite people to join" Scenario: not see link to invite members to enterprise When I am on /profile/beatles-for-sale/members Then I should not see "Invite people to join" link Scenario: deny access if user has no right to invite members Given I am logged in as "josesantos" When I am on /profile/26-bsslines/invite/friends Then I should see "Access denied" Scenario: not see link to invite members to enterprise in manage members Given I am on Beatles For Sale's members management Then I should not see "Invite people to join" link @selenium Scenario: back to members after invite friends to join a community Given I am on 26 Bsslines's members management And I follow "Invite people" And I choose "Email" And I press "Next" And I fill in "manual_import_addresses" with "misfits@devil.doll" And I follow "Personalize invitation mail" And I fill in "mail_template" with "Follow this link <url>" When I press "Invite!" Then I should be on /profile/26-bsslines/members @selenium Scenario: noosfero user receives a task when a user invites to join a community Given I am on 26 Bsslines's members management And I follow "Invite people" And I choose "Email" And I press "Next" And I fill in "manual_import_addresses" with "santos@invalid.br" And I follow "Personalize invitation mail" And I fill in "mail_template" with "Follow this link <url>" And I press "Invite!" Given there are no pending jobs When I am logged in as "josesantos" And I go to josesantos's control panel And I should see "josesilva invited you to join 26 Bsslines." @selenium Scenario: noosfero user accepts to join community Given I invite email "santos@invalid.br" to join community "26 Bsslines" And there are no pending jobs When I am logged in as "josesantos" And I go to josesantos's control panel And I follow "Process requests" And I should see "josesilva invited you to join 26 Bsslines." And I choose "Accept" When I press "Apply!" Then I should not see "josesilva invited you to join 26 Bsslines." When I go to josesantos's control panel And I follow "Manage my groups" Then I should see "26 Bsslines" @selenium Scenario: noosfero user rejects to join community Given I invite email "santos@invalid.br" to join community "26 Bsslines" And there are no pending jobs When I am logged in as "josesantos" And I go to josesantos's control panel And I follow "Process requests" And I should see "josesilva invited you to join 26 Bsslines." And I choose "Reject" When I press "Apply!" Then I should not see "josesilva invited you to join 26 Bsslines." And I go to josesantos's control panel And I follow "Manage my groups" Then I should not see "26 Bsslines" @selenium Scenario: noosfero user receives a task when a user invites to be friend Given I am on josesilva's control panel And I follow "Manage friends" And I follow "Invite people" And I choose "Email" And I press "Next" And I fill in "manual_import_addresses" with "santos@invalid.br" And I follow "Personalize invitation mail" And I fill in "mail_template" with "Follow this link <url>" And I press "Invite!" Given there are no pending jobs When I am logged in as "josesantos" And I go to josesantos's control panel And I follow "Process requests" Then I should see "josesilva wants to be your friend." @selenium Scenario: noosfero user accepts to be friend Given I am logged in as "josesilva" And I go to josesilva's control panel And I invite email "santos@invalid.br" to be my friend And there are no pending jobs When I am logged in as "josesantos" And I go to josesantos's control panel And I follow "Process requests" And I should see "josesilva wants to be your friend." And I choose "Accept" When I press "Apply!" And I should not see "josesilva wants to be your friend." When I go to josesantos's control panel And I follow "Manage friends" Then I should see "josesilva" @selenium Scenario: noosfero user rejects to be friend Given I am logged in as "josesilva" And I go to josesilva's control panel And I invite email "santos@invalid.br" to be my friend And there are no pending jobs When I am logged in as "josesantos" And I go to josesantos's control panel And I follow "Process requests" And I should see "josesilva wants to be your friend." And I choose "Reject" When I press "Apply!" And I should not see "josesilva wants to be your friend." When I go to josesantos's control panel And I follow "Manage friends" Then I should not see "josesilva" |