-
Notifications
You must be signed in to change notification settings - Fork 56
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
Provide a mock way to test upgrade extensions from the extension store #382
Comments
For Chrome, I find a easy way to simulate the upgrade process locally in unpacked mode: drag the same folder to chrome://extensions . It's similar to clicking the reload button, but it even works when the extension is disabled. I'm not sure this method is exactly the same as upgrading from the extension store, e.g. it doesn't trigger new warning permission behavior (disable the extension and prompt granting new permission). |
To build on this comment, developers don't have a single way to test the upgrade flow for an extension. Instead, they must use two very similar flows to test different aspects of the installation:
At the moment, it's only possible to test the upgraded process in a single flow by doing the self-signed upgrade test on Linux. IMO it should be possible to test the upgrade flow using an automated process. This includes checking if the extension is disabled for permission upgrades and, if so, retrieving the text and/or a screenshot of the the prompt presented to the end user. |
FYI there are browser-specific mechanisms to test updates: |
@xeenon, could you follow up with info on how to test upgrades in Safari? |
Safari 16.4 has a similar alert that disables the extension on permission expansion. This flow also happens when building and running from Xcode during development. |
While this is an important concept in testing, it is fully dependent on browser UI and stores, so the WECG determined it is out of scope for the WECG. Chrome has the extension-update-testing-tool, |
This is a feature request for debugging and testing purpose. Because extensions stores have many policy requirements and review process, it is almost impossible for developers to actually test this particular process of upgrading an extension from the extension store.
Some usage scenarios:
runtime.onInstalled
eventNote: current "reload" and "enable/disable" buttons cannot 100% simulate the code path of the upgrade process from the extension store.
The text was updated successfully, but these errors were encountered: