Bug 1959483 - Port tests from ExperimentFakes and ExperimentTestUtils to NimbusTestUtils in services/fxaccounts r=nimbus-reviewers,sync-reviewers,beth,skhamis
Differential Revision: https://phabricator.services.mozilla.com/D247017
This commit is contained in:
committed by
dthorn@mozilla.com
parent
23a547859a
commit
20163680fa
@@ -17,8 +17,8 @@ const { getRemoteCommandStore, RemoteCommand } = ChromeUtils.importESModule(
|
||||
|
||||
ChromeUtils.defineESModuleGetters(this, {
|
||||
ExperimentAPI: "resource://nimbus/ExperimentAPI.sys.mjs",
|
||||
ExperimentFakes: "resource://testing-common/NimbusTestUtils.sys.mjs",
|
||||
ExperimentManager: "resource://nimbus/lib/ExperimentManager.sys.mjs",
|
||||
NimbusTestUtils: "resource://testing-common/NimbusTestUtils.sys.mjs",
|
||||
});
|
||||
|
||||
class TelemetryMock {
|
||||
@@ -81,7 +81,7 @@ add_task(async function test_closetab_isDeviceCompatible() {
|
||||
// Verify that nimbus can remotely override the pref
|
||||
await ExperimentManager.onStartup();
|
||||
await ExperimentAPI.ready();
|
||||
let doExperimentCleanup = await ExperimentFakes.enrollWithFeatureConfig({
|
||||
let doExperimentCleanup = await NimbusTestUtils.enrollWithFeatureConfig({
|
||||
featureId: "remoteTabManagement",
|
||||
// You can add values for each variable you added to the manifest
|
||||
value: {
|
||||
|
||||
Reference in New Issue
Block a user