From fae417dc9e62800ddd716ecd3d72eb0e60bba887 Mon Sep 17 00:00:00 2001 From: dddddanica Date: Fri, 21 Feb 2025 12:46:37 +0000 Subject: [PATCH] fix: modify example for e2e tests in remote feature flag --- docs/remote-feature-flags.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/remote-feature-flags.md b/docs/remote-feature-flags.md index b9e570f..141191b 100644 --- a/docs/remote-feature-flags.md +++ b/docs/remote-feature-flags.md @@ -47,7 +47,7 @@ Choose the appropriate feature flag type based on your needs: In this configuration, the swap button will be blue for 25% of users, red for 25% of users, green for 25% of users, and yellow for 25% of users ```json -[[ +[ { "name": "blue", "scope": { @@ -189,12 +189,18 @@ Your selector must include: Add the customized value in your test configuration: ```typescript -fixtures: new FixtureBuilder() - .withMetaMetricsController({ - metaMetricsId: MOCK_META_METRICS_ID, - participateInMetaMetrics: true, - }) - .build(), +await withFixtures({ + fixtures: new FixtureBuilder() + .withMetaMetricsController({ + metaMetricsId: MOCK_META_METRICS_ID, + participateInMetaMetrics: true, + }) + .build(), + manifestFlags: { + remoteFeatureFlags: MOCK_CUSTOMIZED_REMOTE_FEATURE_FLAGS, + }, + title: this.test?.fullTitle(), +}); ``` #### Mobile