-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46c481d
commit 7267afa
Showing
4 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
lib/decidim/term_customizer/test/rspec_support/capybara.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
require "selenium-webdriver" | ||
|
||
module Decidim | ||
# This is being added because of the issues with the chrome-driver | ||
# in version 120 or later, and this can be removed after this pr#12160 | ||
# being merged(more info https://github.com/decidim/decidim/pull/12159). | ||
Capybara.register_driver :headless_chrome do |app| | ||
options = ::Selenium::WebDriver::Chrome::Options.new | ||
options.args << "--headless=new" | ||
options.args << "--no-sandbox" | ||
options.args << if ENV["BIG_SCREEN_SIZE"].present? | ||
"--window-size=1920,3000" | ||
else | ||
"--window-size=1920,1080" | ||
end | ||
options.args << "--ignore-certificate-errors" if ENV["TEST_SSL"] | ||
Capybara::Selenium::Driver.new( | ||
app, | ||
browser: :chrome, | ||
capabilities: [options] | ||
) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters