Removed some debug infos.
This commit is contained in:
parent
43948e7bcc
commit
1551400230
1 changed files with 5 additions and 5 deletions
|
@ -638,7 +638,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
if params[:timeout]
|
if params[:timeout]
|
||||||
timeout = params[:timeout]
|
timeout = params[:timeout]
|
||||||
end
|
end
|
||||||
loops = (timeout).to_i
|
loops = (timeout).to_i * 2
|
||||||
text = ''
|
text = ''
|
||||||
(1..loops).each { |loop|
|
(1..loops).each { |loop|
|
||||||
element = instance.find_elements( { :css => params[:css] } )[0]
|
element = instance.find_elements( { :css => params[:css] } )[0]
|
||||||
|
@ -662,7 +662,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
# just try again
|
# just try again
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
sleep 1
|
sleep 0.5
|
||||||
}
|
}
|
||||||
raise "'#{params[:value]}' found in '#{text}'"
|
raise "'#{params[:value]}' found in '#{text}'"
|
||||||
end
|
end
|
||||||
|
@ -888,7 +888,7 @@ wait untill text in selector disabppears
|
||||||
|
|
||||||
# it's not working stable via selenium, use js
|
# it's not working stable via selenium, use js
|
||||||
value = instance.find_elements( { :css => '.content .newTicket div[data-name=body]' } )[0].text
|
value = instance.find_elements( { :css => '.content .newTicket div[data-name=body]' } )[0].text
|
||||||
puts "V #{value.inspect}"
|
#puts "V #{value.inspect}"
|
||||||
if value != data[:body]
|
if value != data[:body]
|
||||||
body_quoted = quote( data[:body] )
|
body_quoted = quote( data[:body] )
|
||||||
instance.execute_script( "$('.content.active div[data-name=body]').html('#{body_quoted}').trigger('focusout')" )
|
instance.execute_script( "$('.content.active div[data-name=body]').html('#{body_quoted}').trigger('focusout')" )
|
||||||
|
@ -905,9 +905,9 @@ wait untill text in selector disabppears
|
||||||
|
|
||||||
# check if pulldown is open, it's not working stable via selenium
|
# check if pulldown is open, it's not working stable via selenium
|
||||||
res = instance.execute_script( "$('.active .newTicket .js-recipientDropdown').hasClass('open')" )
|
res = instance.execute_script( "$('.active .newTicket .js-recipientDropdown').hasClass('open')" )
|
||||||
puts "res #{res.inspect}"
|
#puts "res #{res.inspect}"
|
||||||
if !res
|
if !res
|
||||||
puts "IS NOT OPEN!, open it"
|
#puts "IS NOT OPEN!, open it"
|
||||||
instance.execute_script( "$('.active .newTicket .js-recipientDropdown').addClass('open')" )
|
instance.execute_script( "$('.active .newTicket .js-recipientDropdown').addClass('open')" )
|
||||||
end
|
end
|
||||||
element.send_keys( :arrow_down )
|
element.send_keys( :arrow_down )
|
||||||
|
|
Loading…
Reference in a new issue