Sometimes open of user org selection fails with selenium, add open class via ja.

This commit is contained in:
Martin Edenhofer 2015-05-14 17:33:12 +02:00
parent 7155f185dc
commit 0c2f705362

View file

@ -24,7 +24,7 @@ class AgentUserManageTest < TestCase
click( css: '.active .newTicket [name="customer_id_completion"]' ) click( css: '.active .newTicket [name="customer_id_completion"]' )
# check if pulldown is open, it's not working stable via selenium # check if pulldown is open, it's not working stable via selenium
@browser.execute_script( "$('.active .newTicket .js-recipientDropdown').hasClass('open')" ) @browser.execute_script( "$('.active .newTicket .js-recipientDropdown').addClass('open')" )
sleep 1 sleep 1
sendkey( value: :arrow_down ) sendkey( value: :arrow_down )
@ -93,7 +93,7 @@ class AgentUserManageTest < TestCase
) )
# check if pulldown is open, it's not working stable via selenium # check if pulldown is open, it's not working stable via selenium
@browser.execute_script( "$('.active .newTicket .js-recipientDropdown').hasClass('open')" ) @browser.execute_script( "$('.active .newTicket .js-recipientDropdown').addClass('open')" )
sleep 3 sleep 3
sendkey( value: :arrow_down ) sendkey( value: :arrow_down )