forked from moneyadviceservice/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.feature
47 lines (39 loc) · 1.79 KB
/
chat.feature
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
Feature: Chat online
As a user visiting the website
I want to chat online with an advisor
So that I can get money advice
Glossary:
- Online: We are within the hours that chat is operational
- Offline: We are outside the hours that chat is operational
- Busy: All advisors are occupied
Chat operational hours:
- Mon-Fri 8am-8pm
- Sat 9am-1pm
@javascript
Scenario: Chat is online, advisors are available, and the user has JavaScript enabled
Given chat is online
And an advisor is available
Then I should be able to start a chat with an advisor
Scenario: Chat is online, advisors are available, and the user has JavaScript disabled
Given chat is online
And an advisor is available
Then I should see a message informing me that I need JavaScript in order chat with an advisor
@javascript
Scenario: Chat is online but all advisors are busy
Given chat is online
And all advisors are busy
Then I should not be able to start a chat with an advisor
And I should see a message informing me that chat is currently busy
@javascript
Scenario: Chat is offline, but will be online later that day
Given chat will be next online later today
Then I should not be able to start a chat with an advisor
And I should see a message informing me that chat will be online between today's opening hours
@javascript
Scenario: Chat is offline and will not online until tomorrow
Given chat will be next online tomorrow
Then I should not be able to start a chat with an advisor
And I should see a message informing me that chat will be online tomorrow with tomorrow's opening hours
Scenario: Chat is not supported for Welsh users
When I visit the website in Welsh
And I should see a message informing me that chat is only available in English