-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Update internal Firefox tests to use driver fixture #16441
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
[py] Update internal Firefox tests to use driver fixture #16441
Conversation
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
LGTM! Good cleanup
User description
💥 What does this PR do?
This PR updates the internal Python test suite so firefox tests use the main
driver
fixture instead of overriding it with their owndriver
defined in a differentconftest.py
.This also updates
ff_installs_addons_tests.py
so it looks for test extensions in the local source tree if you are not running with bazel (only works if inside thepy/
directory).💡 Additional Considerations
This could be improved by locating extensions directory relative to
__file__
, so it would work from any directory.🔄 Types of changes
PR Type
Tests
Description
Removed Firefox-specific
driver
fixture override inconftest.py
Updated Firefox addon tests to use
no_driver_after_test
markerAdded fallback logic for locating test extensions directory
Minor formatting cleanup in
pyproject.toml
Diagram Walkthrough
File Walkthrough
conftest.py
Remove Firefox-specific driver fixture override
py/test/selenium/webdriver/firefox/conftest.py
ff_installs_addons_tests.py
Update addon tests with markers and path fallback
py/test/selenium/webdriver/firefox/ff_installs_addons_tests.py
@pytest.mark.no_driver_after_test
to all test functionsconftest.py
Minor formatting adjustment in conftest
py/conftest.py
no_driver_after_test
marker checkpyproject.toml
Minor formatting cleanup in project config
py/pyproject.toml
BUILD.bazel
Update build file to remove deleted conftest
py/BUILD.bazel
firefox/conftest.py
file