Skip to content

Commit 353a726

Browse files
committed
remove Capybara settings in rails_helper.rb
1 parent 54207c3 commit 353a726

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

spec/rails_helper.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,6 @@
3232
exit 1
3333
end
3434

35-
Capybara.register_driver :headless_chrome do |app|
36-
options = Selenium::WebDriver::Chrome::Options.new
37-
options.args << "--headless=new"
38-
options.args << "--no-sandbox"
39-
options.args << if ENV["BIG_SCREEN_SIZE"].present?
40-
"--window-size=1920,3000"
41-
else
42-
"--window-size=1920,1080"
43-
end
44-
options.args << "--ignore-certificate-errors" if ENV["TEST_SSL"]
45-
Capybara::Selenium::Driver.new(
46-
app,
47-
browser: :chrome,
48-
capabilities: [options]
49-
)
50-
end
51-
5235
RSpec.configure do |config|
5336
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
5437
# config.fixture_path = "#{::Rails.root}/spec/fixtures"

0 commit comments

Comments
 (0)