accept_member.feature
1.79 KB
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
Feature: accept member
As an admin user
I want to accept a member request
In order to join a community
Background:
Given the following users
| login | name |
| mario | Mario Souto |
| marie | Marie Curie |
And the following community
| identifier | name |
| mycommunity | My Community |
And the community "My Community" is closed
And "Mario Souto" is admin of "My Community"
@selenium
Scenario: approve a task to accept a member as admin in a closed community
Given "Marie Curie" asked to join "My Community"
And I am logged in as "mario"
And I go to mycommunity's control panel
And I follow "Process requests"
And I should see "Marie Curie wants to be a member"
When I choose "Accept"
And I check "Profile Administrator"
And I press "Apply!"
Then "Marie Curie" should be admin of "My Community"
@selenium
Scenario: approve a task to accept a member as member in a closed community
Given "Marie Curie" asked to join "My Community"
And I am logged in as "mario"
And I go to mycommunity's control panel
And I follow "Process requests"
And I should see "Marie Curie wants to be a member"
When I choose "Accept"
And I check "Profile Member"
And I press "Apply!"
Then "Marie Curie" should be a member of "My Community"
@selenium
Scenario: approve a task to accept a member as moderator in a closed community
Given "Marie Curie" asked to join "My Community"
And I am logged in as "mario"
And I go to mycommunity's control panel
And I follow "Process requests"
And I should see "Marie Curie wants to be a member"
When I choose "Accept"
And I check "Profile Moderator"
And I press "Apply!"
Then "Marie Curie" should be moderator of "My Community"