From 36158ea9b2deaedc30dae2c765e4d99421e524b1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 11 Feb 2014 14:20:49 +0100 Subject: [PATCH] Improved helpers. --- test/browser_test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 4680ab999..24419cc67 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -1,6 +1,5 @@ ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' require 'selenium-webdriver' class TestCase < Test::Unit::TestCase @@ -293,6 +292,7 @@ class TestCase < Test::Unit::TestCase end sleep 0.5 instance.find_element( { :css => '.active .form-actions button[type="submit"]' } ).click + sleep 2 (1..14).each {|loop| if instance.current_url =~ /#{Regexp.quote('#ticket/zoom/')}/ assert( true, "(#{test[:name]}) ticket created" )