Added check if init owner selection of new ticket screen is empty.

This commit is contained in:
Martin Edenhofer 2015-01-24 11:15:52 +01:00
parent 07824ab633
commit 84c2452f81

View file

@ -472,6 +472,11 @@ class TestCase < Test::Unit::TestCase
return return
end end
sleep 2 sleep 2
# check count of agents, should be only 1 / - selection on init screen
count = instance.find_elements( { :css => '.active .newTicket select[name="owner_id"] option' } ).count
assert_equal( 1, count, 'check if owner selection is empty per default' )
if action[:group] if action[:group]
element = instance.find_elements( { :css => '.active .newTicket select[name="group_id"]' } )[0] element = instance.find_elements( { :css => '.active .newTicket select[name="group_id"]' } )[0]
dropdown = Selenium::WebDriver::Support::Select.new(element) dropdown = Selenium::WebDriver::Support::Select.new(element)