Fixed browser helper to work with ES.
This commit is contained in:
parent
767397e676
commit
9d0937715d
1 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
sleep 2
|
sleep 2
|
||||||
element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } )
|
element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } )
|
||||||
element.clear
|
element.clear
|
||||||
element.send_keys( 'nico' )
|
element.send_keys( 'nico*' )
|
||||||
sleep 4
|
sleep 4
|
||||||
element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } )
|
element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } )
|
||||||
element.send_keys( :arrow_down )
|
element.send_keys( :arrow_down )
|
||||||
|
@ -291,7 +291,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
assert( true, "(#{test[:name]}) ticket created without submit" )
|
assert( true, "(#{test[:name]}) ticket created without submit" )
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
sleep 0.1
|
sleep 0.5
|
||||||
instance.find_element( { :css => '.active .form-actions button[type="submit"]' } ).click
|
instance.find_element( { :css => '.active .form-actions button[type="submit"]' } ).click
|
||||||
(1..14).each {|loop|
|
(1..14).each {|loop|
|
||||||
if instance.current_url =~ /#{Regexp.quote('#ticket/zoom/')}/
|
if instance.current_url =~ /#{Regexp.quote('#ticket/zoom/')}/
|
||||||
|
|
Loading…
Reference in a new issue