id | title | slug |
---|---|---|
desktop-enroll-locally |
Desktop Local Experiment Iteration |
/desktop-enroll-locally |
Trying to iterate on an experiment in Preview on experimenter.services.mozilla.com can be painful, because even after you change something and post to preview, you have a wait a while for the updated recipe to be propagated to the CDN.
- In
about:config
, set or create:nimbus.debug
totrue
devtools.chrome.enabled
totrue
devtools.debugger.remote-enabled
totrue
- Open
Tools > Browser Tools > Browser Toolbox
- Load
about:studies
and unenroll this profile from anything that might interfere - Switch to the browser console
- In the input box, do the following:
const { ExperimentManager: em } = ChromeUtils.import("resource://nimbus/lib/ExperimentManager.jsm");
let recipe =
paste_recipe_json_here;
const branchSlug = 'treatment-a'; # or whatever branch you want
let branch = recipe.branches.find(b => b.slug == branchSlug);
em.forceEnroll(recipe, branch);
- Reload
about:studies
, and you should see the experiment