Added chat client reload test.

This commit is contained in:
Martin Edenhofer 2015-12-08 01:52:26 +01:00
parent 84d30e4ee0
commit 465ab3e6be

View file

@ -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',