File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,19 @@ def schema_name
85
85
end
86
86
87
87
test "presents webchat" do
88
+ chats = Webchat . load_all
89
+ return if chats . empty?
90
+
91
+ base_path = chats . first . base_path
92
+ availability_url = chats . first . availability_url
93
+ open_url = chats . first . open_url
94
+
88
95
schema = schema_item ( "contact_with_webchat" )
96
+ schema [ "base_path" ] = base_path
89
97
presented = present_example ( schema )
90
98
assert_equal true , presented . show_webchat?
91
- assert_equal presented . webchat . availability_url , "https://hmrc-uk.digital.nuance.com/tagserver/launch/agentAvailability?agentGroupID=10006852&siteID=10006719&businessUnitID=19001235&q-thresh=1"
92
- assert_equal presented . webchat . open_url , "https://tax.service.gov.uk/ask-hmrc/webchat/income-tax-enquiries-for-individuals-pensioners-and-employees"
99
+ assert_equal presented . webchat . availability_url , availability_url
100
+ assert_equal presented . webchat . open_url , open_url
93
101
end
94
102
end
95
103
end
You can’t perform that action at this time.
0 commit comments