Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #38246 - Show console logs in rails tests #10461

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MariaAga
Copy link
Member

No description provided.

else
:selenium_chrome_headless
end
end.to_sym

def chrome_options
options = Selenium::WebDriver::Chrome::Options.new
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts on implementing it here?

Suggested change
options = Selenium::WebDriver::Chrome::Options.new
options = Selenium::WebDriver::Chrome::Options.new
options.add_option("goog:loggingPrefs", {browser: 'ALL'}) if ENV['SHOW_JS_LOG']

I think that gives you the same result but with less code.

Copy link
Member Author

@MariaAga MariaAga Feb 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still have to deal with ShowMeTheCookies.register_adapter(:logging_selenium_chrome, ShowMeTheCookies::SeleniumChrome) and Capybara.register_driver :logging_selenium_chrome so it seems like the same amount of code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants