From 0c2f705362fb6d871bd6156326e34819e19249b0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 14 May 2015 17:33:12 +0200 Subject: [PATCH] Sometimes open of user org selection fails with selenium, add open class via ja. --- test/browser/agent_user_manage_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/browser/agent_user_manage_test.rb b/test/browser/agent_user_manage_test.rb index 11fa681ad..3ab4a6aba 100644 --- a/test/browser/agent_user_manage_test.rb +++ b/test/browser/agent_user_manage_test.rb @@ -24,7 +24,7 @@ class AgentUserManageTest < TestCase click( css: '.active .newTicket [name="customer_id_completion"]' ) # 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 sendkey( value: :arrow_down ) @@ -93,7 +93,7 @@ class AgentUserManageTest < TestCase ) # 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 sendkey( value: :arrow_down )