From 65dbd8799bf76dacc6e2be00e58762c66c9ecc63 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 3 May 2015 21:13:01 +0200 Subject: [PATCH] Wait a little bit longer till ticket is created. --- test/browser_test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 7a5fb637f..7776db508 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -1035,7 +1035,7 @@ wait untill text in selector disabppears #instance.execute_script( '$(".content.active .newTicket form").submit();' ) instance.find_elements( { css: '.active .newTicket button.submit' } )[0].click sleep 1 - (1..8).each {|loop| + (1..10).each {|loop| if instance.current_url =~ /#{Regexp.quote('#ticket/zoom/')}/ assert( true, 'ticket created' ) sleep 2.5 @@ -1056,7 +1056,7 @@ wait untill text in selector disabppears end sleep 1 } - raise "ticket creation failed, can't get zoom url" + raise "ticket creation failed, can't get zoom url (current url is '#{ instance.current_url }')" end =begin