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

Fix WebDrivers For Chrome v116+ #427

Merged
merged 4 commits into from
Aug 25, 2023
Merged

Conversation

aaronskiba
Copy link
Collaborator

This PR addresses the rspec test failures due to the incompatibility between Webdrivers 5.2 and Chrome 116+.

aaronskiba and others added 4 commits August 24, 2023 15:44
"If you cannot upgrade to Selenium 4.11, Webdrivers 5.3.0 will continue to support Ruby 2.6+ and Selenium 4.0 - 4.10" - https://github.com/titusfortner/webdrivers
-Needed for webdrivers to work with Chrome v116+
WebMock.disable_net_connect!(
allow_localhost: true,
allow: %w[chromedriver.storage.googleapis.com]
allow: %w[chromedriver.storage.googleapis.com googlechromelabs.github.io edgedl.me.gvt1.com]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will we need to revert this change once we upgrade to ruby 3?

Copy link
Collaborator Author

@aaronskiba aaronskiba Aug 25, 2023

Choose a reason for hiding this comment

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

When we upgrade to Ruby 3, I'm thinking we should upgrade to Selenium 4.11+.

According to https://github.com/titusfortner/webdrivers:
"If you can update to the latest version of Selenium (4.11+), please do so and stop requiring this gem."

I'm not sure if Selenium will need googlechromelabs.github.io and edgedl.me.gvt1.com.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds great!

@aaronskiba please add a ticket so we don't forget to follow the suggestions after the upgrade to ruby 3.

Copy link
Collaborator

@lagoan lagoan left a comment

Choose a reason for hiding this comment

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

Great!

@aaronskiba aaronskiba merged commit dcb4347 into deployment-portage Aug 25, 2023
@aaronskiba aaronskiba deleted the aaron/issues/426 branch August 25, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants