-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[rb] Add support for beta chrome #15417
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
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…into rb_add_support_for_chrome_beta
…t_for_chrome_beta
…into rb_add_support_for_chrome_beta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like what you've done with most of this.
I keep going back and forth on if we want to pass chrome_beta or if we want to have a WD_BROWSER_VERSION
environment variable for "stable" and "beta". I did the review thinking the former, and now I'm thinking the latter would be better. Mostly I care about adding: guards.add_condition(:version, GlobalTestEnv.version)
which would allow us to do guards of except: {browser: :chrome, version: :stable}
I wonder if we should start with adjusting the firefox beta Ruby implementation to do what we want then we can copy it with the chrome.
rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb
Outdated
Show resolved
Hide resolved
Thank you @titusfortner for the review! appreciated, I'm trying to addressed the comments today and tomorrow, I will be resolving the remaining ones until it works and ping you for a review again :) |
User description
Motivation and Context
The purpose of this PR is to add the ability for ruby tests to run using chrome-beta to make it easier to debug
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Added support for running tests with Chrome Beta.
Introduced
chrome_beta
method to configure Chrome Beta driver.Updated Bazel build files to include Chrome Beta configuration.
Enhanced test environment to handle Chrome Beta driver setup.
Changes walkthrough 📝
test_environment.rb
Add Chrome Beta driver support in test environment
rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb
chrome_beta
method to configure Chrome Beta driver.create_driver!
to handle Chrome Beta driver.tests.bzl
Add Chrome Beta configuration to Bazel tests
rb/spec/tests.bzl
BUILD.bazel
Include Chrome Beta in supported browsers list
rb/spec/integration/BUILD.bazel
chrome-beta
to the list of supported browsers.