From 55116a4a7542fe142a572dc0e02d946748ebdfc6 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 23 Mar 2016 00:12:50 +0100 Subject: [PATCH] Improved tests. --- test/browser/agent_ticket_actions_level7_test.rb | 11 +++++++++-- test/browser_test_helper.rb | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/test/browser/agent_ticket_actions_level7_test.rb b/test/browser/agent_ticket_actions_level7_test.rb index d41d9625f..58d55bd14 100644 --- a/test/browser/agent_ticket_actions_level7_test.rb +++ b/test/browser/agent_ticket_actions_level7_test.rb @@ -39,7 +39,7 @@ class AgentTicketActionLevel7Test < TestCase ) # click reply - click( css: '.content.active [data-type="emailReply"]' ) + click(css: '.content.active [data-type="emailReply"]') # check body watch_for( @@ -62,7 +62,7 @@ class AgentTicketActionLevel7Test < TestCase ) # click reply - click( css: '.content.active [data-type="emailReply"]' ) + click(css: '.content.active [data-type="emailReply"]') # check body watch_for( @@ -71,5 +71,12 @@ class AgentTicketActionLevel7Test < TestCase no_quote: true, ) + # check body + ticket_verify( + data: { + body: 'keep me', + }, + ) + end end diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index eb4700f13..2135b76d2 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -413,7 +413,7 @@ class TestCase < Test::Unit::TestCase js: "\$('#{params[:css]}').get(0).scrollIntoView(#{position})", mute_log: params[:mute_log] ) - sleep 0.2 + sleep 0.3 end =begin @@ -1205,7 +1205,7 @@ wait untill text in selector disabppears instance = params[:browser] || @browser (1..100).each do - sleep 0.2 + sleep 0.1 begin if instance.find_elements(css: '.navigation .tasks .task:first-child')[0] instance.mouse.move_to(instance.find_elements(css: '.navigation .tasks .task:first-child')[0])