<% if item.meta.type is 'task': %>
<% if item.task.notify: %>
diff --git a/app/assets/javascripts/app/views/widget/online_notification_content.jst.eco b/app/assets/javascripts/app/views/widget/online_notification_content.jst.eco
index e342be1f8..78244ee6b 100644
--- a/app/assets/javascripts/app/views/widget/online_notification_content.jst.eco
+++ b/app/assets/javascripts/app/views/widget/online_notification_content.jst.eco
@@ -7,7 +7,7 @@
- <%= item.created_by.displayName() %> <%- @T( item.type ) %> <%- @T( item.object_name ) %><% if item.title: %> <%= item.title %><% end %>
+ <%= item.created_by.displayName() %> <%- @T( "#{item.type}d" ) %> <%- @T( item.object_name ) %><% if item.title: %> <%= item.title %><% end %>
<%- @humanTime(item.created_at, false, 'activity-time') %>
diff --git a/test/browser/chat_test.rb b/test/browser/chat_test.rb
index 0f56c0405..dfd5aac28 100644
--- a/test/browser/chat_test.rb
+++ b/test/browser/chat_test.rb
@@ -502,13 +502,28 @@ class ChatTest < TestCase
end
def test_timeouts
+ agent = browser_instance
+ login(
+ browser: agent,
+ username: 'master@example.com',
+ password: 'test',
+ url: browser_url,
+ )
+ tasks_close_all(
+ browser: agent,
+ )
+ click(
+ browser: agent,
+ css: 'a[href="#customer_chat"]',
+ )
+ agent.find_elements( { css: '.active .chat-window .js-close' } ).each(&:click)
+
+ # no customer action, hide widget
customer = browser_instance
location(
browser: customer,
url: "#{browser_url}/assets/chat/znuny.html?port=#{ENV['WS_PORT']}",
)
-
- # no customer action, hide widget
watch_for(
browser: customer,
css: '.zammad-chat',
@@ -557,22 +572,11 @@ class ChatTest < TestCase
browser: customer,
css: '.js-chat-open',
)
-
- agent = browser_instance
- login(
+ watch_for(
browser: agent,
- username: 'master@example.com',
- password: 'test',
- url: browser_url,
+ css: '.js-chatMenuItem .counter',
+ value: '1',
)
- tasks_close_all(
- browser: agent,
- )
- click(
- browser: agent,
- css: 'a[href="#customer_chat"]',
- )
- agent.find_elements( { css: '.active .chat-window .js-close' } ).each(&:click)
click(
browser: agent,
css: '.active .js-acceptChat',