when you add or edit a testcase the CI will schedule test-verify to run. This historically has run the test in repeat mode and sometimes in MOZ_CHAOS mode.
As of
https://bugzilla.mozilla.org/show_bug.cgi?id=1783248 mochitest will compare the preferences at startup with the preferences at the end of the test. If there are any new preferences or changed values it will results in a TEST-UNEXPECTED-FAIL message.
While this is awesome, there is one more cool feature and one caveat:
* caveat: there are many prefs that are related to background tasks or time and might show up as a failure even if you don't touch it. Add prefs to
https://searchfox.org/mozilla-central/source/testing/mochitest/ignorePrefs.json if you need to
* extra feature: for mochitests, when each testcase finishes it resets the prefs back to the original values.