Add nil-check to fix failing browser test
This commit is contained in:
parent
79d4284365
commit
b79a76d6f8
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
browser_width = ENV['BROWSER_WIDTH'] || 1024
|
browser_width = ENV['BROWSER_WIDTH'] || 1024
|
||||||
browser_height = ENV['BROWSER_HEIGHT'] || 800
|
browser_height = ENV['BROWSER_HEIGHT'] || 800
|
||||||
local_browser.manage.window.resize_to(browser_width, browser_height)
|
local_browser.manage.window.resize_to(browser_width, browser_height)
|
||||||
unless ENV['REMOTE_URL'].match?(/saucelabs|(grid|ci)\.(zammad\.org|znuny\.com)/i)
|
unless ENV['REMOTE_URL']&.match?(/saucelabs|(grid|ci)\.(zammad\.org|znuny\.com)/i)
|
||||||
if @browsers.count == 1
|
if @browsers.count == 1
|
||||||
local_browser.manage.window.move_to(0, 0)
|
local_browser.manage.window.move_to(0, 0)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue