follow_profile.feature
1.86 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
52
53
54
55
Feature: follow profile
As a noosfero user
I want to follow a profile
So I can receive notifications from it
Background:
Given the following community
| identifier | name |
| nightswatch | Nights Watch |
And the following users
| login |
| johnsnow |
And the user "johnsnow" has the following categories to follow
| name |
| Family |
| Work |
@selenium
Scenario: Common noofero user follow a community with a category
Given I am logged in as "johnsnow"
When I go to nightswatch's homepage
When I follow "Follow"
And I should see "Family"
And I should see "Work"
And I should see "No Category"
Then "johnsnow" should be a follower of "nightswatch" with no category
When I follow "Work"
Then "johnsnow" should be a follower of "nightswatch" with category "Work"
@selenium
Scenario: Common noofero user follow a community with no category
Given I am logged in as "johnsnow"
When I go to nightswatch's homepage
When I follow "Follow"
When I follow "No Category"
Then "johnsnow" should be a follower of "nightswatch" with no category
@selenium
Scenario: Common noofero user follow a community with a new category
Given I am logged in as "johnsnow"
When I go to nightswatch's homepage
When I follow "Follow"
And I fill in "category_name" with "Winterfell"
When I click on anything with selector "#new-category-submit-inline"
And I wait 3 second
Then "johnsnow" should be a follower of "nightswatch" with category "Winterfell"
@selenium
Scenario: Common noofero user unfollow a community
Given "johnsnow" is a follower of "nightswatch" with no category
And I am logged in as "johnsnow"
When I go to nightswatch's homepage
When I follow "Unfollow"
Then "johnsnow" should not be a follower of "nightswatch"