From 9d0937715dbd396f4e6043b7bff86d85679fadb0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 11 Feb 2014 12:16:06 +0100 Subject: [PATCH] Fixed browser helper to work with ES. --- test/browser_test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index b0093ff0b..4680ab999 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -268,7 +268,7 @@ class TestCase < Test::Unit::TestCase sleep 2 element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } ) element.clear - element.send_keys( 'nico' ) + element.send_keys( 'nico*' ) sleep 4 element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } ) element.send_keys( :arrow_down ) @@ -291,7 +291,7 @@ class TestCase < Test::Unit::TestCase assert( true, "(#{test[:name]}) ticket created without submit" ) return end - sleep 0.1 + sleep 0.5 instance.find_element( { :css => '.active .form-actions button[type="submit"]' } ).click (1..14).each {|loop| if instance.current_url =~ /#{Regexp.quote('#ticket/zoom/')}/