-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[js] fix JS tests on RBE #16777
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
[js] fix JS tests on RBE #16777
Conversation
29c32ef to
f4e0d7e
Compare
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
💥 What does this PR do?
connection.executetoconnection.sendwhen we want it to be blocking.env.builder()instead ofnew Builder()so it uses the bazel configured values for the run💡 Additional Considerations
More tests to follow up, just need to get things fixed first.
PR Type
Bug fix, Tests
Description
Replace deprecated
connection.execute()calls withconnection.send()Simplify CDP connection method signatures by removing null parameters
Remove flaky Firefox WebExtension profile tests from test suite
Re-enable JavaScript tests on RBE by fixing test compatibility issues
Diagram Walkthrough
File Walkthrough
webdriver.js
Refactor CDP connection method callsjavascript/selenium-webdriver/lib/webdriver.js
connection.execute()withconnection.send()for CDP commandsNetwork.setCacheDisabled, Page.enable, Runtime.evaluate,
Page.removeScriptToEvaluateOnLoad)
script handling
builder_test.js
Simplify builder test setupjavascript/selenium-webdriver/test/builder_test.js
env.builder()helper methodoptions_test.js
Remove flaky WebExtension testsjavascript/selenium-webdriver/test/firefox/options_test.js
verifyUserAgent()helper function
.skipped-tests
Re-enable JavaScript tests on RBE.skipped-tests
(test-builder-test.js-chrome, test-chrome-devtools-test.js-chrome,
test-firefox-options-test.js-firefox)