chat.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
56
57
Feature: chat
As a Noosfero user
I want to chat with my friends
Background:
Given the following users
| login | name |
| tame | Tame |
Scenario: provide link to open chat
Given feature "xmpp_chat" is enabled on environment
And I am logged in as "tame"
Then I should see "Open chat" link
Scenario: not provide link to chat when environment not support that
Given I am logged in as "tame"
Then I should not see "Open chat" link
Scenario: block access to chat when environment not support that
Given I am logged in as "tame"
When I go to chat
Then I should see "There is no such page"
Scenario: block access to chat for guest users
Given feature "xmpp_chat" is enabled on environment
When I go to chat
Then I should be on login page
@selenium
Scenario: open chat in a new window
Given feature "xmpp_chat" is enabled on environment
And I am logged in as "tame"
When I follow "Open chat"
And I select window "noosfero_chat"
Then I should see "Chat - Colivre.net - Friends online (0)"
@selenium
Scenario: chat starts disconnected by default
Given feature "xmpp_chat" is enabled on environment
And I am logged in as "tame"
And I follow "Open chat"
And I select window "noosfero_chat"
Then I should see "Chat offline" link
@selenium
Scenario: view options to change my presence status through menu
Given feature "xmpp_chat" is enabled on environment
And I am logged in as "tame"
And I follow "Open chat"
And I select window "noosfero_chat"
Then the "#chat-online" should not be visible
Then the "#chat-busy" should not be visible
Then the "#chat-disconnect" should not be visible
Then I follow "Chat offline"
Then the "#chat-connect" should be visible
Then the "#chat-busy" should be visible
Then the "#chat-disconnect" should be visible