Only set location of second window in non ci env.

This commit is contained in:
Martin Edenhofer 2015-05-03 18:00:18 +02:00
parent ccf4566850
commit 74c86cf815

View file

@ -56,7 +56,7 @@ class TestCase < Test::Unit::TestCase
def browser_instance_preferences(local_browser) def browser_instance_preferences(local_browser)
local_browser.manage.window.resize_to(1024, 800) local_browser.manage.window.resize_to(1024, 800)
if ENV['REMOTE_URL'] !~ /saucelabs|ci\.(zammad\.org|znuny\.com)/i if ENV['REMOTE_URL'] !~ /saucelabs|(grid|ci)\.(zammad\.org|znuny\.com)/i
if @browsers.size < 1 if @browsers.size < 1
local_browser.manage.window.move_to(0, 0) local_browser.manage.window.move_to(0, 0)
else else