From fab440e219844a1df5a74e77e1c671d5bffca90c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 7 Dec 2015 10:40:21 +0100 Subject: [PATCH] Improved test. --- test/browser/chat_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/browser/chat_test.rb b/test/browser/chat_test.rb index 2b0b69bd0..0eedef490 100644 --- a/test/browser/chat_test.rb +++ b/test/browser/chat_test.rb @@ -326,6 +326,12 @@ class ChatTest < TestCase browser: agent, 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( browser: customer, css: '.zammad-chat .zammad-chat-agent-status', @@ -345,7 +351,6 @@ class ChatTest < TestCase css: '.active .chat-window', value: 'my name is customer', ) - sleep 1 exists( browser: agent, css: '.active .chat-window .chat-status.is-modified',