-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Need a way to disable the Quick Action Sheet for visual metrics performance tests #5048
Comments
One may set a shared preference to prevent the Quick Action Sheet from bouncing automatically, as it does on the first few runs. One should be able to do this:
|
@colintheshots how would you feel about GV learning how to set arbitrary Shared Preferences from its debug config file? Would Gecko-startup time be early enough to impact the shared pref above? This might provide a decent way forward for parts of Bug 1547717. It's an abstraction breaking thing, but the GV mechanism is principled and believed to be secure. Thoughts? |
It's just a flat XML file key-value store. Alternatively, you can simply create a file before first run with these contents at this location
|
Yes, GV startup is likely early enough unless perhaps the first thing the user does is hit an external link from cold startup. Then there's a possibility of a race. |
It's not reasonable to achieve this without an Thanks for confirming that GV startup might achieve this, though! |
I put a
Normally we do clear app data with |
So I've disabled the Quick Action Sheet in code for the tests that I'm running. But here's an idea: what if we disable it automatically for the |
That Quick Action Sheet is persistent though! fenix/app/src/main/java/org/mozilla/fenix/quickactionsheet/QuickActionSheetView.kt Line 148 in a31eb1f
I think we'll need an automation-friendly way of turning off all these routes. |
@colintheshots @ncalexan Using the
So that gave me an idea for the QuickActionSheet: What if I put it behind a FeatureFlag and disable it for the If other visual features come along, they can be similarly disabled. |
@colintheshots What do you think about the above -- disable the QuickActionSheet in |
@acreskeyMoz The QuickActionSheet (or QuickActionBar) is in the process of being removed: #4281 I'm going to pre-emptively close this bug – feel free to reopen if that doesn't fit your needs. :) |
That's great, thanks @mcomella |
Why/User Benefit/User Problem
The Quick Action Sheet menu, with the Share / Bookmark items appears automatically during a pageload.
Related to #4308
This will cause problems for visual metrics performance tests since they effectively measure the time for the rendering to settle.
What/Requirements
Some mechanism to disable the auto display of the Quick Action Sheet (intent argument?) for performance testing.
Acceptance Criteria (how do I know when I’m done?)
When Fenix can be launched in a to-be-determined manner and no Quick Action Sheet will appear unless the user has clicked on it.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: