Sometimes open of user org selection fails with selenium, add open class via ja.
This commit is contained in:
parent
7155f185dc
commit
0c2f705362
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue