Skip to content

Commit

Permalink
Merge pull request #4316 from sanger/disable-search-engine-choice-screen
Browse files Browse the repository at this point in the history
Add temporary fix for cucumber tests
  • Loading branch information
yoldas authored Sep 4, 2024
2 parents 6b78652 + 6a9178c commit f8235c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config/environments/cucumber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@
ENV_JAVA['https.proxyHost'] = nil
ENV_JAVA['https.proxyPort'] = nil
end

# load WIP features flag
config.deploy_wip_pipelines = true
end
4 changes: 3 additions & 1 deletion features/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
Capybara.register_driver :headless_chrome do |app|
options = Selenium::WebDriver::Chrome::Options.new

options.add_argument('--headless')
options.add_argument('--window-size=1600,3200')
options.add_preference('download.default_directory', DownloadHelpers::PATH.to_s)
options.add_argument('--headless=old')
options.add_argument('--disable-gpu')
options.add_argument('--disable-search-engine-choice-screen')
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end

Expand Down
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@
Capybara.register_driver :headless_chrome do |app|
options = Selenium::WebDriver::Chrome::Options.new

options.add_argument('--headless')
options.add_preference('download.default_directory', DownloadHelpers::PATH.to_s)
options.add_argument('--headless=old')
options.add_argument('--disable-gpu')
options.add_argument('--disable-search-engine-choice-screen')
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end

Capybara.register_driver :selenium_chrome do |app|
options = Selenium::WebDriver::Chrome::Options.new

options.add_preference('download.default_directory', DownloadHelpers::PATH.to_s)
options.add_argument('--disable-gpu')
options.add_argument('--disable-search-engine-choice-screen')
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end

Expand Down

0 comments on commit f8235c1

Please sign in to comment.