Allow Disabling Automated Firefox Extension Installation via Cypress Env Variable #31316
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.
Description:
In our organisation we use a custom Firefox build in a restricted environment. Starting from #30324, where the geckodriver was introduced to install the Cypress Firefox extension, this process fails in our setup with the following error message:
Investigation & Root Cause
Our setup deviates from a standard Firefox installation, which seems to be the cause of this failure. Since the extension installation is now an enforced step, Cypress cannot proceed if the process fails.
Proposed Solution
Introduce a custom Cypress environment variable (e.g.,
CYPRESS_FIREFOX_EXTENSION_INSTALL
) that:This would enable us to manually install the extension on the browser beforehand while keeping Cypress functional in our environment.
Why This Matters
While this is a niche use case, some users in our organization are not familiar with coding or modifying Cypress locally. Adding this option would significantly improve usability for such environments.
Additional Information
A potential fix has been suggested in a pull request, but I’m open to other approaches that might better align with Cypress’s development roadmap.
Would appreciate any feedback on this!
How has the user experience changed?
The user experience has not been changed.
PR Tasks
cypress-documentation
?type definitions
?