Added check if init owner selection of new ticket screen is empty.
This commit is contained in:
parent
07824ab633
commit
84c2452f81
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue