Module: PublishingPlatformTest
- Defined in:
- lib/publishing_platform_test.rb,
lib/publishing_platform_test/version.rb
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/publishing_platform_test.rb', line 10 def self.configure .register_driver :headless_chrome do |app| ::Selenium::Driver.new(app, browser: :chrome, options: ) end .javascript_driver = :headless_chrome .server = :puma, { Silent: true } end |
.headless_chrome_selenium_options ⇒ Object
21 22 23 24 25 26 |
# File 'lib/publishing_platform_test.rb', line 21 def self. Selenium::WebDriver::Chrome::Options.new.tap do || .add_argument("--headless=new") .add_argument("--no-sandbox") if ENV["PUBLISHING_PLATFORM_TEST_CHROME_NO_SANDBOX"] end end |