balloon.feature
2.16 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
Feature: balloon
I want to view a balloon when mouse clicks on profile trigger
Background:
Given the following users
| login | name |
| joaosilva | Joao Silva |
And the following communities
| identifier | name |
| sample | Sample |
And I am logged in as "joaosilva"
@selenium
Scenario: I should not see trigger if not enabled
Given feature "show_balloon_with_profile_links_when_clicked" is disabled on environment
When I go to /search/people
Then I should not see "Profile links"
@selenium
Scenario: I should not see trigger by default
Given feature "show_balloon_with_profile_links_when_clicked" is enabled on environment
When I go to /search/people
Then I should not see "Friends"
@selenium
Scenario: I should see balloon when clicked on people block trigger
Given feature "show_balloon_with_profile_links_when_clicked" is enabled on environment
And I go to /search/people
And display ".person-trigger"
When I follow "Profile links"
Then I should see "Friends"
@selenium
Scenario: I should see balloon when clicked on community block trigger
Given feature "show_balloon_with_profile_links_when_clicked" is enabled on environment
And I go to /search/communities
And display ".community-trigger"
When I follow "Profile links"
Then I should see "Members"
@selenium
Scenario: I should not see trigger if not enabled on page
Given feature "show_balloon_with_profile_links_when_clicked" is disabled on environment
When I go to /search/people
Then I should not see "Profile links"
@selenium
Scenario: I should not see trigger by default on page
Given feature "show_balloon_with_profile_links_when_clicked" is enabled on environment
When I go to /search/communities
Then I should not see "Members"
@selenium
Scenario: I should see balloon when clicked on page trigger
Given feature "show_balloon_with_profile_links_when_clicked" is enabled on environment
And I go to /search/communities
And display ".community-trigger"
When I follow "Profile links"
Then I should see "Members"
And I should see "Agenda"