Skip to content

Commit

Permalink
rm test config
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk committed Apr 15, 2024
1 parent bbd6c32 commit 69164fb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 67 deletions.
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ services:
target: development
depends_on:
- db
- selenium
ports:
- 3000:3000
restart: always
Expand All @@ -39,11 +38,3 @@ services:
SOLR_URL: http://solr:8983/solr/geodata-test
volumes:
- ./:/opt/app:delegated

selenium:
image: selenium/standalone-chrome
ports:
- 4444:4444
- 7900:7900
platform: linux/amd64
shm_size: 2g
31 changes: 0 additions & 31 deletions spec/features/click_login_link_spec.rb

This file was deleted.

27 changes: 0 additions & 27 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,6 @@
abort('The Rails environment is running in production mode!') if Rails.env.production?
require 'rspec/rails'

Capybara.register_driver :remote_selenium_headless do |app|
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--headless=new')
options.add_argument('--no-sandbox')
# options.add_argument('--disable-dev-shm-usage')
# options.add_argument('--disable-gpu')
options.add_argument('--window-size=2560,1344')
options.add_argument('--disable-smooth-scrolling')
capabilities = [
options,
Selenium::WebDriver::Remote::Capabilities.new(
'goog:loggingPrefs' => {
browser: 'ALL', driver: 'ALL'
}
)
]

Capybara::Selenium::Driver.new(app,
browser: :remote,
capabilities:,
url: "http://#{ENV['SELENIUM_HOST'] || 'selenium'}:4444/",
)

end

Capybara.default_driver = Capybara.javascript_driver = :remote_selenium_headless

RSpec.configure do |config|
config.use_transactional_fixtures = false

Expand Down

0 comments on commit 69164fb

Please sign in to comment.