From 465ab3e6be62a2ea3e2aa49ccd0cf1445ed6cb33 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 8 Dec 2015 01:52:26 +0100 Subject: [PATCH] Added chat client reload test. --- test/browser/chat_test.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/browser/chat_test.rb b/test/browser/chat_test.rb index dfd5aac28..c1ae8da29 100644 --- a/test/browser/chat_test.rb +++ b/test/browser/chat_test.rb @@ -490,6 +490,28 @@ class ChatTest < TestCase browser: agent, 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( browser: customer, css: '.js-chat-close', @@ -581,6 +603,7 @@ class ChatTest < TestCase browser: agent, css: '.active .js-acceptChat', ) + sleep 2 set( browser: agent, css: '.active .chat-window .js-customerChatInput',