From 893272e886f8ba7020476838f796184d9b0a805a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 27 Nov 2015 20:58:27 +0100 Subject: [PATCH] Fixed browser test. --- test/browser/agent_ticket_actions_level0_test.rb | 6 +++++- test/browser_test_helper.rb | 13 ++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/test/browser/agent_ticket_actions_level0_test.rb b/test/browser/agent_ticket_actions_level0_test.rb index 4ab44e1b8..bb1d93066 100644 --- a/test/browser/agent_ticket_actions_level0_test.rb +++ b/test/browser/agent_ticket_actions_level0_test.rb @@ -118,10 +118,14 @@ class AgentTicketActionLevel0Test < TestCase ) # check if text module exists in instance2, for ready to use + click( + browser: browser2, + css: '#global-search', + ) set( browser: browser2, css: '.active div[data-name=body]', - value: 'test ::' + random + value: 'test ::' + random, ) watch_for( browser: browser2, diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index d785e1005..c47b077e8 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -1660,11 +1660,11 @@ wait untill text in selector disabppears user_create( :browser => browser2, :data => { - #:login => 'some login' + random, - :firstname => 'Manage Firstname' + random, - :lastname => 'Manage Lastname' + random, - :email => user_email, - :password => 'some-pass', + #login: 'some login' + random, + firstname: 'Manage Firstname' + random, + lastname: 'Manage Lastname' + random, + email: user_email, + password: 'some-pass', }, ) @@ -1699,8 +1699,7 @@ wait untill text in selector disabppears element.send_keys( data[:password] ) instance.find_elements( { css: '.modal input[name="role_ids"][value="3"]' } )[0].click instance.find_elements( { css: '.modal button.js-submit' } )[0].click - - sleep 2 + sleep 3.5 set( browser: instance, css: '.content .js-search',