Improved test.

This commit is contained in:
Martin Edenhofer 2015-12-07 10:40:21 +01:00
parent fb31c8aaf6
commit fab440e219

View file

@ -326,6 +326,12 @@ class ChatTest < TestCase
browser: agent, browser: agent,
css: '.active .chat-window .chat-status.is-modified', css: '.active .chat-window .chat-status.is-modified',
) )
# keep focus outside of chat window to check .chat-status.is-modified later
click(
browser: agent,
css: '#global-search',
)
watch_for( watch_for(
browser: customer, browser: customer,
css: '.zammad-chat .zammad-chat-agent-status', css: '.zammad-chat .zammad-chat-agent-status',
@ -345,7 +351,6 @@ class ChatTest < TestCase
css: '.active .chat-window', css: '.active .chat-window',
value: 'my name is customer', value: 'my name is customer',
) )
sleep 1
exists( exists(
browser: agent, browser: agent,
css: '.active .chat-window .chat-status.is-modified', css: '.active .chat-window .chat-status.is-modified',