Maintenance: Ensure that the window of the different browsers has the same and consistent size to avoid diverging behavior.

This commit is contained in:
Thorsten Eckel 2020-12-15 12:29:07 +01:00
parent e6379bc2ab
commit 1b08b84f92

View file

@ -22,5 +22,9 @@ RSpec.configure do |config|
# set custom Zammad driver (e.g. zammad_chrome) for special # set custom Zammad driver (e.g. zammad_chrome) for special
# functionalities and CI requirements # functionalities and CI requirements
driven_by(:"zammad_#{ENV.fetch('BROWSER', 'firefox')}") driven_by(:"zammad_#{ENV.fetch('BROWSER', 'firefox')}")
browser_width = ENV['BROWSER_WIDTH'] || 1024
browser_height = ENV['BROWSER_HEIGHT'] || 800
page.driver.browser.manage.window.resize_to(browser_width, browser_height)
end end
end end