Re-enable oscillating tests

This commit is contained in:
Sebastian Serth
2021-05-11 12:08:38 +02:00
parent 26151920c0
commit ebdfd4ab63
6 changed files with 32 additions and 9 deletions

View File

@ -13,6 +13,7 @@ Capybara.register_driver :selenium do |app|
profile['intl.accept_languages'] = 'en'
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(elementScrollBehavior: 1)
options = Selenium::WebDriver::Firefox::Options.new
options.headless! if ENV['CI'] == 'true'
options.profile = profile
driver = Capybara::Selenium::Driver.new(app, browser: :firefox, desired_capabilities: capabilities, options: options)
driver.browser.manage.window.resize_to(1280, 960)