forked from moneyadviceservice/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwant_to_talk.feature
48 lines (41 loc) · 1.52 KB
/
want_to_talk.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
48
@wip @javascript
Feature: Want to Talk
As user
I want to talk to someone
So that I can get bespoke advice
Scenario: When enabled
When I view an article in English
And the want to talk feature is enabled
Then I see the want to talk panel in the sidebar
Scenario: Click to open
When I view an article in English
And the want to talk feature is enabled
And I click the want to talk button
Then I see the expanded want to talk panel
And It sends a GA event - TriagePhase1 Open
Scenario: Click to close
When I view an article in English
And the want to talk feature is enabled
And the want to talk panel is open
And I click the want to talk button
Then I don't see the expanded want to talk panel
And It sends a GA event - TriagePhase1 Close
Scenario: When disabled
When I view an article in English
Then I don't see the want to talk panel in the sidebar
Scenario: Scrolling
When I view an article in English
And the want to talk feature is enabled
And I scroll down the page
Then the want to talk panel remains in the viewport
Scenario: Mobile
When I view an article in English
And I am on mobile
And the want to talk feature is enabled
Then I see want to talk panel inline
Scenario: Click to telephone
When I view an article in English
And the want to talk feature is enabled
And the want to talk panel is open
And I click the phone number
Then It sends a GA event - TriagePhase1 PhoneNumber