diff --git a/test/browser/agent_ticket_actions_level5_test.rb b/test/browser/agent_ticket_actions_level5_test.rb index 89223bded..ac89f159c 100644 --- a/test/browser/agent_ticket_actions_level5_test.rb +++ b/test/browser/agent_ticket_actions_level5_test.rb @@ -381,7 +381,7 @@ class AgentTicketActionLevel5Test < TestCase { :where => :instance2, :execute => 'wait', - :value => 10, + :value => 1, }, { :where => :instance2, @@ -458,7 +458,7 @@ class AgentTicketActionLevel5Test < TestCase { :where => :instance2, :execute => 'match', - :css => 'body', + :css => '.active .ticket-edit', :value => random, :match_result => true, }, diff --git a/test/browser/agent_user_manage_test.rb b/test/browser/agent_user_manage_test.rb index 8938b2fd1..47801a341 100644 --- a/test/browser/agent_user_manage_test.rb +++ b/test/browser/agent_user_manage_test.rb @@ -34,13 +34,17 @@ class AgentUserManageTest < TestCase :execute => 'sendkey', :value => [:arrow_down] }, + { + :execute => 'wait', + :value => 1, + }, { :execute => 'click', :css => '.active .newTicket .recipientList-entry.js-user-new', }, { :execute => 'wait', - :value => 2, + :value => 1, }, { :execute => 'set', @@ -160,6 +164,10 @@ class AgentUserManageTest < TestCase :execute => 'sendkey', :value => [:arrow_down] }, + { + :execute => 'wait', + :value => 1, + }, { :execute => 'click', :css => '.active .newTicket .recipientList-entry.js-user.is-active', diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index f76b1768f..89226e13d 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -293,7 +293,7 @@ class TestCase < Test::Unit::TestCase return end rescue => e - puts e.message + #puts e.message assert( true, "(#{test[:name]}) not found" ) sleep 0.4 return @@ -520,13 +520,15 @@ class TestCase < Test::Unit::TestCase if action[:value] == '###stack###' element.send_keys( @stack ) else - element.send_keys( '' ) - keys = action[:value].to_s.split('') - keys.each {|key| - instance.action.send_keys(key).perform - sleep 0.01 - } - #element.send_keys( action[:value] ) + if !action[:slow] + element.send_keys( action[:value] ) + else + element.send_keys( '' ) + keys = action[:value].to_s.split('') + keys.each {|key| + instance.action.send_keys(key).perform + } + end sleep 0.3 end elsif action[:execute] == 'select'