From f5c47c1e1399b522994b04dbd06517536c814d5a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 29 Nov 2015 19:38:48 +0100 Subject: [PATCH] Fixed customer selection. --- test/browser_test_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index a698d4bbb..4e91a450d 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -1049,7 +1049,8 @@ wait untill text in selector disabppears #instance.execute_script( "$('#{params[:css]} .js-recipientDropdown').addClass('open')" ) #sleep 0.5 element.send_keys( :arrow_down ) - #sleep 0.3 + sleep 0.3 + element.send_keys( :enter ) #instance.find_elements( { css: params[:css] + ' .recipientList-entry.js-user.is-active' } )[0].click sleep 0.6 assert( true, 'ticket_customer_select' ) @@ -1224,7 +1225,8 @@ wait untill text in selector disabppears #instance.execute_script( "$('.active .newTicket .js-recipientDropdown').addClass('open')" ) #sleep 0.5 element.send_keys( :arrow_down ) - #sleep 0.3 + sleep 0.3 + element.send_keys( :enter ) #instance.find_elements( { css: '.active .newTicket .recipientList-entry.js-user.is-active' } )[0].click sleep 0.6 end