You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dependency Management: The PR includes updates to import paths across multiple files to use the selenium-webdriver package. It's important to ensure that these changes do not break existing functionality and that all dependencies are correctly resolved.
Code Consistency: The changes in import paths should be reviewed for consistency across all modified files to ensure that similar changes adhere to project standards.
Test Coverage: The removal of the small-tests job from the CI workflow raises concerns about whether the new test configurations and paths are adequately covered by automated tests.
Consolidate imports from selenium-webdriver into a single import statement
To ensure compatibility and avoid potential issues with different versions of the selenium-webdriver package, consider using a single import statement to import all required modules from selenium-webdriver.
Why: Consolidating imports can enhance readability and maintainability, but it's not a major issue or bug fix.
6
Maintainability
Group related imports together and separate them with a blank line for better readability
To improve readability and maintainability, consider grouping related imports together and separating them with a blank line from other groups of imports.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Tests
Description
selenium-webdriverpackage._TIMEOUTSdictionary and updatedmocha_testfunction inmocha_test.bzlto handle test timeouts.small-testsjob from CI workflow and updated dependencies.BUILD.bazelto include new dependencies and modifysmall-teststarget.Changes walkthrough 📝
17 files
driver_factory.js
Update import paths in driver_factory.jsjavascript/node/selenium-webdriver/test/driver_factory.js
selenium-webdriverpackage.io_test.js
Update import path in io_test.jsjavascript/node/selenium-webdriver/test/io/io_test.js
iomodule to useselenium-webdriverpackage.zip_test.js
Update import paths in zip_test.jsjavascript/node/selenium-webdriver/test/io/zip_test.js
io,zip, andInvalidArgumentErrorto useselenium-webdriverpackage.by_test.js
Update import path in by_test.jsjavascript/node/selenium-webdriver/test/lib/by_test.js
bymodule to useselenium-webdriverpackage.credentials_test.js
Update import path in credentials_test.jsjavascript/node/selenium-webdriver/test/lib/credentials_test.js
virtualAuthenticatorCredentialto useselenium-webdriverpackage.error_test.js
Update import path in error_test.jsjavascript/node/selenium-webdriver/test/lib/error_test.js
errormodule to useselenium-webdriverpackage.
http_test.js
Update import paths in http_test.jsjavascript/node/selenium-webdriver/test/lib/http_test.js
selenium-webdriverpackage.
input_test.js
Update import paths in input_test.jsjavascript/node/selenium-webdriver/test/lib/input_test.js
selenium-webdriverpackage.
logging_test.js
Update import path in logging_test.jsjavascript/node/selenium-webdriver/test/lib/logging_test.js
loggingmodule to useselenium-webdriverpackage.
promise_test.js
Update import path in promise_test.jsjavascript/node/selenium-webdriver/test/lib/promise_test.js
promisemodule to useselenium-webdriverpackage.
until_test.js
Update import paths in until_test.jsjavascript/node/selenium-webdriver/test/lib/until_test.js
selenium-webdriverpackage.
virtualauthenticatoroptions_test.js
Update import paths in virtualauthenticatoroptions_test.jsjavascript/node/selenium-webdriver/test/lib/virtualauthenticatoroptions_test.js
virtualAuthenticatorOptions,Transport, andProtocolto useselenium-webdriverpackage.webdriver_test.js
Update import paths in webdriver_test.jsjavascript/node/selenium-webdriver/test/lib/webdriver_test.js
selenium-webdriverpackage.
logging_test.js
Update import paths in logging_test.jsjavascript/node/selenium-webdriver/test/logging_test.js
Browserandloggingto useselenium-webdriverpackage.
index_test.js
Update import path in index_test.jsjavascript/node/selenium-webdriver/test/net/index_test.js
netmodule to useselenium-webdriverpackage.portprober_test.js
Update import path in portprober_test.jsjavascript/node/selenium-webdriver/test/net/portprober_test.js
portprobermodule to useselenium-webdriverpackage.
mocha_test.bzl
Add timeouts and size handling in mocha_test.bzljavascript/private/mocha_test.bzl
_TIMEOUTSdictionary for test timeouts.mocha_testfunction to includesizeand timeout arguments.2 files
ci-javascript.yml
Update CI workflow to remove small-tests job.github/workflows/ci-javascript.yml
small-testsjob.browser-testsjob to depend onbuildinstead ofsmall-tests.BUILD.bazel
Update BUILD.bazel for js_library and small-testsjavascript/node/selenium-webdriver/BUILD.bazel
js_library.small-teststarget to includeargsand removed unnecessarytags.