Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.js.SDK
Commits
25449cc3
Commit
25449cc3
authored
Dec 03, 2018
by
Tim Kinnane
Browse files
Merge branch 'develop' into feature/driver-tests
# Conflicts: # src/lib/driver.ts
parents
a12bed71
7cf42aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utils/testing.ts
View file @
25449cc3
...
...
@@ -197,11 +197,12 @@ export async function setup () {
// End of API setup usage
await
logout
()
//
Assign bot user as livechat
agent
//
Enable Livechat and assign bot as
agent
try
{
const
socket
=
new
Socket
()
await
socket
.
open
()
await
socket
.
login
({
username
:
apiUser
.
username
,
password
:
apiUser
.
password
})
await
socket
.
call
(
'
saveSetting
'
,
'
Livechat_enabled
'
,
true
)
await
socket
.
call
(
'
livechat:addAgent
'
,
botUser
.
username
)
console
.
log
(
'
Bot user assigned as livechat agent
'
)
await
socket
.
close
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment