my_network_block.feature
2.72 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
56
57
58
59
60
61
62
63
64
65
66
67
68
Feature: my_network_block
As a blog owner
I want to see a summary of my network
Background:
Given the following users
| login | name |
| joaosilva | Joao Silva |
And the following blocks
| owner | type |
| joaosilva | MyNetworkBlock |
And the following communities
| identifier | name | public_profile |
| public-community | Public Community | true |
Scenario: display how many public/private communities I am member
Given the following communities
| identifier | name | owner | public_profile |
| other-public-community | Other Public Community | joaosilva | true |
| private-community | Private Community | joaosilva | false |
And I am logged in as "joaosilva"
And I am on Joao Silva's homepage
Then I should see "2 communities"
When I go to Public Community's homepage
And I follow "Join"
And I press "Yes, I want to join."
When I go to Joao Silva's homepage
Then I should see "3 communities"
Scenario: not display how many invisible communities I am member
Given the following communities
| identifier | name | owner | visible |
| visible-community | Visible Community | joaosilva | true |
| not-visible-community | Not Visible Community | joaosilva | false |
And I am logged in as "joaosilva"
And I am on Joao Silva's homepage
Then I should see "One community"
When I go to Public Community's homepage
And I follow "Join"
And I press "Yes, I want to join."
When I go to Joao Silva's homepage
Then I should see "2 communities"
Scenario: display how many public/private friends I have
Given the following users
| login | name | public_profile |
| mariasilva | Maria Silva | true |
| josesilva | Jose Silva | false |
And "joaosilva" is friend of "mariasilva"
And I am logged in as "joaosilva"
And I am on Joao Silva's homepage
Then I should see "1 friend"
And "joaosilva" is friend of "josesilva"
When I go to Joao Silva's homepage
Then I should see "2 friends"
Scenario: not display how many invisible friends I have
Given the following users
| login | name | visible |
| mariasilva | Maria Silva | true |
| josesilva | Jose Silva | false |
And "joaosilva" is friend of "mariasilva"
And I am logged in as "joaosilva"
When I go to Joao Silva's homepage
Then I should see "1 friend"
And "joaosilva" is friend of "josesilva"
When I go to Joao Silva's homepage
Then I should see "1 friend"