Maintenance: Ensure that the window of the different browsers has the same and consistent size to avoid diverging behavior.
This commit is contained in:
parent
e6379bc2ab
commit
1b08b84f92
1 changed files with 4 additions and 0 deletions
|
@ -22,5 +22,9 @@ RSpec.configure do |config|
|
|||
# set custom Zammad driver (e.g. zammad_chrome) for special
|
||||
# functionalities and CI requirements
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue