Added chat client reload test.
This commit is contained in:
parent
84d30e4ee0
commit
465ab3e6be
1 changed files with 23 additions and 0 deletions
|
@ -490,6 +490,28 @@ class ChatTest < TestCase
|
||||||
browser: agent,
|
browser: agent,
|
||||||
css: '.active .chat-window .js-customerChatInput',
|
css: '.active .chat-window .js-customerChatInput',
|
||||||
)
|
)
|
||||||
|
reload(
|
||||||
|
browser: customer,
|
||||||
|
)
|
||||||
|
exists(
|
||||||
|
browser: customer,
|
||||||
|
css: '.zammad-chat',
|
||||||
|
)
|
||||||
|
watch_for(
|
||||||
|
browser: customer,
|
||||||
|
css: '.zammad-chat',
|
||||||
|
value: 'Hi Stranger|My Greeting',
|
||||||
|
)
|
||||||
|
watch_for(
|
||||||
|
browser: customer,
|
||||||
|
css: '.zammad-chat',
|
||||||
|
value: 'my name is me',
|
||||||
|
)
|
||||||
|
watch_for(
|
||||||
|
browser: customer,
|
||||||
|
css: '.zammad-chat',
|
||||||
|
value: 'my name is customer',
|
||||||
|
)
|
||||||
click(
|
click(
|
||||||
browser: customer,
|
browser: customer,
|
||||||
css: '.js-chat-close',
|
css: '.js-chat-close',
|
||||||
|
@ -581,6 +603,7 @@ class ChatTest < TestCase
|
||||||
browser: agent,
|
browser: agent,
|
||||||
css: '.active .js-acceptChat',
|
css: '.active .js-acceptChat',
|
||||||
)
|
)
|
||||||
|
sleep 2
|
||||||
set(
|
set(
|
||||||
browser: agent,
|
browser: agent,
|
||||||
css: '.active .chat-window .js-customerChatInput',
|
css: '.active .chat-window .js-customerChatInput',
|
||||||
|
|
Loading…
Reference in a new issue